From a806bf16c4b213f2b2bce112624fdaa59461e02c Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Sat, 18 Jul 2009 13:34:59 +0000 Subject: [PATCH] Turn abort() into unreachable llvm-svn: 76314 --- lib/Target/SystemZ/SystemZISelLowering.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/Target/SystemZ/SystemZISelLowering.cpp b/lib/Target/SystemZ/SystemZISelLowering.cpp index 10e969ddd67..d6fd6edccf4 100644 --- a/lib/Target/SystemZ/SystemZISelLowering.cpp +++ b/lib/Target/SystemZ/SystemZISelLowering.cpp @@ -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; }