Fix spurious warning in release mode
authorChris Lattner <sabre@nondot.org>
Sat, 10 Apr 2004 19:15:56 +0000 (19:15 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 10 Apr 2004 19:15:56 +0000 (19:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12816 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/InstructionCombining.cpp

index be754d13c7abf02bb83717968c9296350e729772..944b83c520a1122c008e6aa928feaf6819038051 100644 (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);
 }