Skip to content

Commit e63b18b

Browse files
committed
Catch an extremely obvious memory leak, thanks asan
https://lab.llvm.org/buildbot/#/builders/5/builds/9208 (dbg-phis-merging-in-ldv.mir and dbg-phis-with-loops.mir in the asan check stage)
1 parent bf9dcb4 commit e63b18b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3574,6 +3574,9 @@ class LDVSSAUpdater {
35743574
LDVSSAUpdater(LocIdx L, ValueIDNum **MLiveIns) : Loc(L), MLiveIns(MLiveIns) {}
35753575

35763576
void reset() {
3577+
for (auto &Block : BlockMap)
3578+
delete Block.second;
3579+
35773580
PHIs.clear();
35783581
UndefMap.clear();
35793582
BlockMap.clear();

0 commit comments

Comments
 (0)