mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
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)
This commit is contained in:
parent
ab6a6eee6b
commit
cc491fbe18
@ -3574,6 +3574,9 @@ public:
|
||||
LDVSSAUpdater(LocIdx L, ValueIDNum **MLiveIns) : Loc(L), MLiveIns(MLiveIns) {}
|
||||
|
||||
void reset() {
|
||||
for (auto &Block : BlockMap)
|
||||
delete Block.second;
|
||||
|
||||
PHIs.clear();
|
||||
UndefMap.clear();
|
||||
BlockMap.clear();
|
||||
|
Loading…
Reference in New Issue
Block a user