summaryrefslogtreecommitdiff
path: root/lib/Target/Lanai
diff options
context:
space:
mode:
authorAlex Bradbury <asb@lowrisc.org>2017-08-22 09:11:41 +0000
committerAlex Bradbury <asb@lowrisc.org>2017-08-22 09:11:41 +0000
commit378757fdf73b052a0155e276f4ab5ab5b7b30091 (patch)
tree73cb3dd79d2d5e0d7d738710fa8153b0a515cfd5 /lib/Target/Lanai
parent95a4133b77a6b8be19f9c338fdf8a5c9c8aa2f29 (diff)
Use report_fatal_error for unsupported calling conventions
The calling convention can be specified by the user in IR. Failing to support a particular calling convention isn't a programming error, and so relying on llvm_unreachable to catch and report an unsupported calling convention is not appropriate. Differential Revision: https://reviews.llvm.org/D36830 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311435 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Lanai')
-rw-r--r--lib/Target/Lanai/LanaiISelLowering.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/Lanai/LanaiISelLowering.cpp b/lib/Target/Lanai/LanaiISelLowering.cpp
index 0a9cac2565f..f14e45c1a57 100644
--- a/lib/Target/Lanai/LanaiISelLowering.cpp
+++ b/lib/Target/Lanai/LanaiISelLowering.cpp
@@ -405,7 +405,7 @@ SDValue LanaiTargetLowering::LowerFormalArguments(
case CallingConv::Fast:
return LowerCCCArguments(Chain, CallConv, IsVarArg, Ins, DL, DAG, InVals);
default:
- llvm_unreachable("Unsupported calling convention");
+ report_fatal_error("Unsupported calling convention");
}
}
@@ -431,7 +431,7 @@ SDValue LanaiTargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,
return LowerCCCCallTo(Chain, Callee, CallConv, IsVarArg, IsTailCall, Outs,
OutVals, Ins, DL, DAG, InVals);
default:
- llvm_unreachable("Unsupported calling convention");
+ report_fatal_error("Unsupported calling convention");
}
}