1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

Don't corrupt memory when removing an instruction from the program, but

not the worklist

llvm-svn: 6733
This commit is contained in:
Chris Lattner 2003-06-17 03:57:18 +00:00
parent e231d9ad37
commit 2b01ee820e

View File

@ -120,6 +120,7 @@ bool GCSE::EliminateRedundancies(Instruction *I,
// Erase the instruction from the program.
I->getParent()->getInstList().erase(I);
WorkList.erase(I);
}
return true;