Skip to content

Commit

Permalink
Use CallConv::Cold in cranelift for extern "rust-cold"
Browse files Browse the repository at this point in the history
  • Loading branch information
scottmcm committed May 30, 2022
1 parent 055cfaf commit a5394aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler/rustc_codegen_cranelift/src/abi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ fn clif_sig_from_fn_abi<'tcx>(
fn_abi: &FnAbi<'tcx, Ty<'tcx>>,
) -> Signature {
let call_conv = match fn_abi.conv {
Conv::Rust | Conv::C | Conv::RustCold => default_call_conv,
Conv::Rust | Conv::C => default_call_conv,
Conv::RustCold => CallConv::Cold,
Conv::X86_64SysV => CallConv::SystemV,
Conv::X86_64Win64 => CallConv::WindowsFastcall,
Conv::ArmAapcs
Expand Down

0 comments on commit a5394aa

Please sign in to comment.