assert(0) -> LLVM_UNREACHABLE.
[oota-llvm.git] / lib / VMCore / Instructions.cpp
index b56168a969bbb25740cd911460defb038d4803c4..475d8cdd56c2562095b64f495e13727a07941d20 100644 (file)
@@ -2705,7 +2705,7 @@ ICmpInst::makeConstantRange(Predicate pred, const APInt &C) {
   APInt Upper(C);
   uint32_t BitWidth = C.getBitWidth();
   switch (pred) {
-  default: assert(0 && "Invalid ICmp opcode to ConstantRange ctor!");
+  default: LLVM_UNREACHABLE("Invalid ICmp opcode to ConstantRange ctor!");
   case ICmpInst::ICMP_EQ: Upper++; break;
   case ICmpInst::ICMP_NE: Lower++; break;
   case ICmpInst::ICMP_ULT: Lower = APInt::getMinValue(BitWidth); break;