diff options
author | Alex Bradbury <asb@lowrisc.org> | 2017-08-22 09:11:41 +0000 |
---|---|---|
committer | Alex Bradbury <asb@lowrisc.org> | 2017-08-22 09:11:41 +0000 |
commit | ceda540bf1ed8a1fec6fd9d648d4ef5a96467357 (patch) | |
tree | 95504fab653b37b3c65dfc5a1d0febc913bd811e /llvm/lib/Target/Lanai | |
parent | ce8ef9715dcfe6635bb3ff20f32fb52edfc878c2 (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
Diffstat (limited to 'llvm/lib/Target/Lanai')
-rw-r--r-- | llvm/lib/Target/Lanai/LanaiISelLowering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/Lanai/LanaiISelLowering.cpp b/llvm/lib/Target/Lanai/LanaiISelLowering.cpp index 0a9cac2565f..f14e45c1a57 100644 --- a/llvm/lib/Target/Lanai/LanaiISelLowering.cpp +++ b/llvm/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"); } } |