assert(0) -> LLVM_UNREACHABLE.
[oota-llvm.git] / lib / VMCore / Verifier.cpp
index 5d800aff9062c7541674e5d692b5e8c32e03dac2..1f43569dde53c69d89e34af37c25ec7b8daea2f1 100644 (file)
@@ -208,7 +208,7 @@ namespace {
       if (!Broken) return false;
       msgs << "Broken module found, ";
       switch (action) {
-      default: assert(0 && "Unknown action");
+      default: LLVM_UNREACHABLE("Unknown action");
       case AbortProcessAction:
         msgs << "compilation aborted!\n";
         cerr << msgs.str();
@@ -1117,7 +1117,7 @@ void Verifier::visitBinaryOperator(BinaryOperator &B) {
             "Shift return type must be same as operands!", &B);
     break;
   default:
-    assert(0 && "Unknown BinaryOperator opcode!");
+    LLVM_UNREACHABLE("Unknown BinaryOperator opcode!");
   }
 
   visitInstruction(B);