From 5a04a316a060dc654d5f1f969b0e6bc249d1dc48 Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Wed, 4 Mar 2015 01:48:39 +0000 Subject: [PATCH] Use report_fatal_error instead of unreachable for -fast-isel-abort Suggestion by Andrea Di Biagio From: Mehdi Amini git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231201 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index d015b0b0dd0..d8b79ac476a 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -1182,7 +1182,7 @@ void SelectionDAGISel::SelectAllBasicBlocks(const Function &Fn) { // Fast isel failed to lower these arguments ++NumFastIselFailLowerArguments; if (EnableFastISelAbort > 1) - llvm_unreachable("FastISel didn't lower all arguments"); + report_fatal_error("FastISel didn't lower all arguments"); // Use SelectionDAG argument lowering LowerArguments(Fn); @@ -1254,7 +1254,7 @@ void SelectionDAGISel::SelectAllBasicBlocks(const Function &Fn) { if (EnableFastISelAbort > 2) // FastISel selector couldn't handle something and bailed. // For the purpose of debugging, just abort. - llvm_unreachable("FastISel didn't select the entire block"); + report_fatal_error("FastISel didn't select the entire block"); if (!Inst->getType()->isVoidTy() && !Inst->use_empty()) { unsigned &R = FuncInfo->ValueMap[Inst]; @@ -1297,7 +1297,7 @@ void SelectionDAGISel::SelectAllBasicBlocks(const Function &Fn) { if (ShouldAbort) // FastISel selector couldn't handle something and bailed. // For the purpose of debugging, just abort. - llvm_unreachable("FastISel didn't select the entire block"); + report_fatal_error("FastISel didn't select the entire block"); NumFastIselFailures += NumFastIselRemaining; break; -- 2.34.1