summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2015-03-04 01:48:39 +0000
committerMehdi Amini <mehdi.amini@apple.com>2015-03-04 01:48:39 +0000
commit367bfa42d8efd2da49324324bd0e9a37f43a666a (patch)
tree512ba74b7b55f417c15c1bc8431310c08aeb9fe2 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
parent0afee8517645922c8c177d57d8225c43c234ff64 (diff)
downloadbcm5719-llvm-367bfa42d8efd2da49324324bd0e9a37f43a666a.tar.gz
bcm5719-llvm-367bfa42d8efd2da49324324bd0e9a37f43a666a.zip
Use report_fatal_error instead of unreachable for -fast-isel-abort
Suggestion by Andrea Di Biagio From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 231201
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index d015b0b0dd0..d8b79ac476a 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud