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 e2f90f7 commit 4ee48c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 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 4ee48c0

Please sign in to comment.