mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Make sure to _delete_ memory allocated by worklists
llvm-svn: 4523
This commit is contained in:
parent
facce8e131
commit
b9fa84c1ed
@ -314,6 +314,8 @@ bool SCCP::runOnFunction(Function &F) {
|
||||
// Reset state so that the next invocation will have empty data structures
|
||||
BBExecutable.clear();
|
||||
ValueState.clear();
|
||||
std::vector<Instruction*>().swap(InstWorkList);
|
||||
std::vector<BasicBlock*>().swap(BBWorkList);
|
||||
|
||||
return MadeChanges;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user