1
0
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:
Chris Lattner 2002-11-04 02:54:22 +00:00
parent facce8e131
commit b9fa84c1ed

View File

@ -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;
}