diff options
author | Chris Lattner <sabre@nondot.org> | 2004-04-10 19:15:56 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-04-10 19:15:56 +0000 |
commit | 326c0f3013afd3f99c86c16133348872a8aa2f69 (patch) | |
tree | d2f2dd1667430aa12142fe2fea67621e8ad1eb8f /lib | |
parent | 85aa7097c2c6c9429d0ff09fa5e498ae84dbce9c (diff) | |
download | external_llvm-326c0f3013afd3f99c86c16133348872a8aa2f69.zip external_llvm-326c0f3013afd3f99c86c16133348872a8aa2f69.tar.gz external_llvm-326c0f3013afd3f99c86c16133348872a8aa2f69.tar.bz2 |
Fix spurious warning in release mode
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12816 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Transforms/Scalar/InstructionCombining.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index be754d1..944b83c 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -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); } |