diff options
author | Chris Lattner <sabre@nondot.org> | 2004-04-05 16:02:41 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-04-05 16:02:41 +0000 |
commit | 548f47efb0f10e4298ae437176a8f773e76db042 (patch) | |
tree | cc2b90684dbe13ff24466f1dfa791a4e3baeba99 /lib/Transforms | |
parent | 15a76c0b35f76114e56c0cc77bb518c3bd588be8 (diff) |
Fix a bug in yesterdays checkins which broke siod. siod is a great testcase! :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12659 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Scalar/InstructionCombining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index aa260da9b5..18da86a0e2 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -2422,10 +2422,10 @@ Instruction *InstCombiner::visitGetElementPtrInst(GetElementPtrInst &GEP) { } Sum = BinaryOperator::create(Instruction::Add, SO1, GO1, GEP.getOperand(0)->getName()+".sum", &GEP); + WorkList.push_back(cast<Instruction>(Sum)); } GEP.setOperand(0, SrcGEPOperands[0]); GEP.setOperand(1, Sum); - WorkList.push_back(cast<Instruction>(Sum)); return &GEP; } else if (isa<Constant>(*GEP.idx_begin()) && cast<Constant>(*GEP.idx_begin())->isNullValue() && |