Fix a bug in yesterdays checkins which broke siod. siod is a great testcase! :)

llvm-svn: 12659
This commit is contained in:
Chris Lattner 2004-04-05 16:02:41 +00:00
parent 8953b90aaa
commit 4d1fcf1dcd
1 changed files with 1 additions and 1 deletions

View File

@ -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() &&