From 326c0f3013afd3f99c86c16133348872a8aa2f69 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 10 Apr 2004 19:15:56 +0000 Subject: [PATCH] Fix spurious warning in release mode git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12816 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/InstructionCombining.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } -- 2.34.1