Convert assert(0) to llvm_unreachable
[oota-llvm.git] / lib / Target / ARM / ARMFastISel.cpp
index 129130355336c7e1848e350f2564227f09e95b71..904e9171c87812b0ebfc162394ad9e3a6fcb3ff5 100644 (file)
@@ -881,9 +881,7 @@ void ARMFastISel::ARMSimplifyAddress(Address &Addr, EVT VT, bool useAM3) {
 
   bool needsLowering = false;
   switch (VT.getSimpleVT().SimpleTy) {
-    default:
-      assert(false && "Unhandled load/store type!");
-      break;
+    default: llvm_unreachable("Unhandled load/store type!");
     case MVT::i1:
     case MVT::i8:
     case MVT::i16: