From: Chris Lattner Date: Sat, 10 Apr 2004 19:15:56 +0000 (+0000) Subject: Fix spurious warning in release mode X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=326c0f3013afd3f99c86c16133348872a8aa2f69;p=oota-llvm.git Fix spurious warning in release mode git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12816 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index be754d13c7a..944b83c520a 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(&BI)) New = new ShiftInst(SI->getOpcode(), Op0, Op1); - else + else { assert(0 && "Unknown binary instruction type!"); + abort(); + } return IC->InsertNewInstBefore(New, BI); }