about summary refs log tree commit diff
diff options
context:
space:
mode:
authorScott McMurray <scottmcm@users.noreply.github.com>2022-05-29 10:50:51 -0700
committerScott McMurray <scottmcm@users.noreply.github.com>2022-05-30 00:19:24 -0700
commita5394aa27a397f4b6bca88d9fa55e829721c1a9f (patch)
treee57d6505ea764cd699a615099fc29dfc4b4eb1ee
parent055cfaf10d3223dff3c703a2dfff1ca714fd6742 (diff)
downloadrust-a5394aa27a397f4b6bca88d9fa55e829721c1a9f.tar.gz
rust-a5394aa27a397f4b6bca88d9fa55e829721c1a9f.zip
Use CallConv::Cold in cranelift for extern "rust-cold"
-rw-r--r--compiler/rustc_codegen_cranelift/src/abi/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/abi/mod.rs b/compiler/rustc_codegen_cranelift/src/abi/mod.rs
index 59a7316c1c0..ffa5d747b11 100644
--- a/compiler/rustc_codegen_cranelift/src/abi/mod.rs
+++ b/compiler/rustc_codegen_cranelift/src/abi/mod.rs
@@ -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