forked from OSchip/llvm-project
parent
d450df05ba
commit
f9d9665138
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue