projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1900620
)
80-col fixup.
author
Jakub Staszak
<kubastaszak@gmail.com>
Tue, 16 Oct 2012 19:39:40 +0000
(19:39 +0000)
committer
Jakub Staszak
<kubastaszak@gmail.com>
Tue, 16 Oct 2012 19:39:40 +0000
(19:39 +0000)
llvm-svn: 166050
llvm/lib/Transforms/Scalar/DCE.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Transforms/Scalar/DCE.cpp
b/llvm/lib/Transforms/Scalar/DCE.cpp
index
8d53443
..
a2e074f
100644
(file)
--- a/
llvm/lib/Transforms/Scalar/DCE.cpp
+++ b/
llvm/lib/Transforms/Scalar/DCE.cpp
@@
-118,7
+118,8
@@
bool DCE::runOnFunction(Function &F) {
I->eraseFromParent();
// Remove the instruction from the worklist if it still exists in it.
- WorkList.erase(std::remove(WorkList.begin(), WorkList.end(), I), WorkList.end());
+ WorkList.erase(std::remove(WorkList.begin(), WorkList.end(), I),
+ WorkList.end());
MadeChange = true;
++DCEEliminated;