projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9f6e4a
)
Don't corrupt memory when removing an instruction from the program, but
author
Chris Lattner
<sabre@nondot.org>
Tue, 17 Jun 2003 03:57:18 +0000
(
03:57
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 17 Jun 2003 03:57:18 +0000
(
03:57
+0000)
not the worklist
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6733
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/GCSE.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/GCSE.cpp
b/lib/Transforms/Scalar/GCSE.cpp
index b467784b5e1d1640931ef08a9258fa24b701d2bb..6883818dbc0996507c9d3fb3d24e2fb33cb83fff 100644
(file)
--- a/
lib/Transforms/Scalar/GCSE.cpp
+++ b/
lib/Transforms/Scalar/GCSE.cpp
@@
-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;