Skip to content

Commit 9adf10c

Browse files
authored
Fix leak from HLMatrixLowerPass when cleaning up temp functions (#4074)
1 parent aff5e0b commit 9adf10c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/HLSL/HLMatrixLowerPass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ bool TempOverloadPool::contains(Function *Func) const {
9494
void TempOverloadPool::clear() {
9595
for (auto Entry : Funcs) {
9696
DXASSERT(Entry.second->use_empty(), "Temporary function still used during pool destruction.");
97-
Entry.second->removeFromParent();
97+
Entry.second->eraseFromParent();
9898
}
9999
Funcs.clear();
100100
}

0 commit comments

Comments
 (0)