OSDN Git Service

Turn abort() into unreachable
authorAnton Korobeynikov <asl@math.spbu.ru>
Sat, 18 Jul 2009 13:34:59 +0000 (13:34 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Sat, 18 Jul 2009 13:34:59 +0000 (13:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76314 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SystemZ/SystemZISelLowering.cpp

index 10e969d..d6fd6ed 100644 (file)
@@ -228,17 +228,19 @@ SDValue SystemZTargetLowering::LowerCCCArguments(SDValue Op,
       TargetRegisterClass *RC;
       switch (LocVT.getSimpleVT()) {
       default:
+#ifndef NDEBUG
         cerr << "LowerFORMAL_ARGUMENTS Unhandled argument type: "
              << LocVT.getSimpleVT()
              << "\n";
-        abort();
-       case MVT::i64:
+#endif
+        llvm_unreachable(0);
+      case MVT::i64:
         RC = SystemZ::GR64RegisterClass;
         break;
-       case MVT::f32:
+      case MVT::f32:
         RC = SystemZ::FP32RegisterClass;
         break;
-       case MVT::f64:
+      case MVT::f64:
         RC = SystemZ::FP64RegisterClass;
         break;
       }