Turn abort() into unreachable

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76314 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Anton Korobeynikov 2009-07-18 13:34:59 +00:00
parent 31e874490a
commit 6d94eff354

View 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;
}