aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-03-11 23:28:45 +0000
committerChris Lattner <sabre@nondot.org>2002-03-11 23:28:45 +0000
commita007bc2c14937edf67a0cb2f98ec4985c51da75d (patch)
treef986cd7e4e681fe5ab9387c23d261397fa553ba9 /lib/Transforms
parent4c63ce3d23fba1df062c2ab0537325a21517da6e (diff)
Fix bug: test/Regression/Other/2002-03-11-InstCombineHang.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1864 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/Scalar/InstructionCombining.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp
index 08cf74637e..1b0196e3e8 100644
--- a/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -43,8 +43,8 @@ static Instruction *CombineBinOp(BinaryOperator *I) {
if (I->getType()->isIntegral() && cast<ConstantInt>(Op2)->equalsInt(0)){
// Eliminate 'add int %X, 0'
I->replaceAllUsesWith(Op1); // FIXME: This breaks the worklist
- LocalChange = true;
- break;
+ Changed = true;
+ return I;
}
if (Instruction *IOp1 = dyn_cast<Instruction>(Op1)) {