Fix spurious warning in release mode

llvm-svn: 12816
This commit is contained in:
Chris Lattner 2004-04-10 19:15:56 +00:00
parent 8b1122d4dc
commit 22c22de2f0

View File

@ -509,8 +509,10 @@ static Value *FoldOperationIntoSelectOperand(Instruction &BI, Value *SO,
New = BinaryOperator::create(BO->getOpcode(), Op0, Op1);
else if (ShiftInst *SI = dyn_cast<ShiftInst>(&BI))
New = new ShiftInst(SI->getOpcode(), Op0, Op1);
else
else {
assert(0 && "Unknown binary instruction type!");
abort();
}
return IC->InsertNewInstBefore(New, BI);
}