[llvm-commits] CVS: llvm/lib/Transforms/Scalar/GCSE.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Jun 16 22:58:01 PDT 2003
Changes in directory llvm/lib/Transforms/Scalar:
GCSE.cpp updated: 1.27 -> 1.28
---
Log message:
Don't corrupt memory when removing an instruction from the program, but
not the worklist
---
Diffs of the changes:
Index: llvm/lib/Transforms/Scalar/GCSE.cpp
diff -u llvm/lib/Transforms/Scalar/GCSE.cpp:1.27 llvm/lib/Transforms/Scalar/GCSE.cpp:1.28
--- llvm/lib/Transforms/Scalar/GCSE.cpp:1.27 Fri Jan 31 22:50:59 2003
+++ llvm/lib/Transforms/Scalar/GCSE.cpp Mon Jun 16 22:57:18 2003
@@ -120,6 +120,7 @@
// Erase the instruction from the program.
I->getParent()->getInstList().erase(I);
+ WorkList.erase(I);
}
return true;
More information about the llvm-commits
mailing list