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 d450df05ba
commit f9d9665138
1 changed files with 3 additions and 1 deletions

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);
}