[llvm-commits] CVS: llvm/lib/Transforms/IPO/ConstantMerge.cpp
Jeff Cohen
jeffc at jolt-lang.org
Sat Apr 14 10:18:50 PDT 2007
Changes in directory llvm/lib/Transforms/IPO:
ConstantMerge.cpp updated: 1.37 -> 1.38
---
Log message:
An even better fix.
---
Diffs of the changes: (+2 -3)
ConstantMerge.cpp | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
Index: llvm/lib/Transforms/IPO/ConstantMerge.cpp
diff -u llvm/lib/Transforms/IPO/ConstantMerge.cpp:1.37 llvm/lib/Transforms/IPO/ConstantMerge.cpp:1.38
--- llvm/lib/Transforms/IPO/ConstantMerge.cpp:1.37 Sat Apr 14 11:55:19 2007
+++ llvm/lib/Transforms/IPO/ConstantMerge.cpp Sat Apr 14 12:18:29 2007
@@ -65,9 +65,8 @@
// If this GV is dead, remove it.
GV->removeDeadConstantUsers();
if (GV->use_empty() && GV->hasInternalLinkage()) {
- (GV++)->eraseFromParent();
- if (GV == E)
- break;
+ GV->eraseFromParent();
+ continue;
}
// Only process constants with initializers.
More information about the llvm-commits
mailing list