Skip to content

Commit a5394aa

Browse files
committed
Use CallConv::Cold in cranelift for extern "rust-cold"
1 parent 055cfaf commit a5394aa

File tree

1 file changed

+2
-1
lines changed
  • compiler/rustc_codegen_cranelift/src/abi

1 file changed

+2
-1
lines changed

compiler/rustc_codegen_cranelift/src/abi/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ fn clif_sig_from_fn_abi<'tcx>(
2222
fn_abi: &FnAbi<'tcx, Ty<'tcx>>,
2323
) -> Signature {
2424
let call_conv = match fn_abi.conv {
25-
Conv::Rust | Conv::C | Conv::RustCold => default_call_conv,
25+
Conv::Rust | Conv::C => default_call_conv,
26+
Conv::RustCold => CallConv::Cold,
2627
Conv::X86_64SysV => CallConv::SystemV,
2728
Conv::X86_64Win64 => CallConv::WindowsFastcall,
2829
Conv::ArmAapcs

0 commit comments

Comments
 (0)