Add 'llvm_unreachable' to passify GCC's understanding of the constraints
[oota-llvm.git] / lib / VMCore / Verifier.cpp
index 003de442d61af2ef5ffdaaba044f711d72b3081e..ea773b3a62d1f46976b00916f8fce70c93d988d2 100644 (file)
@@ -225,7 +225,6 @@ namespace {
       if (!Broken) return false;
       MessagesStr << "Broken module found, ";
       switch (action) {
-      default: llvm_unreachable("Unknown action");
       case AbortProcessAction:
         MessagesStr << "compilation aborted!\n";
         dbgs() << MessagesStr.str();
@@ -239,6 +238,7 @@ namespace {
         MessagesStr << "compilation terminated.\n";
         return true;
       }
+      llvm_unreachable("Invalid action");
     }