Fix spurious warning in release mode
[oota-llvm.git] / 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);
 }