Skip to content

Commit c1569cc

Browse files
committed
Lower extern "rust-cold" to default calling convention
The next Cranelift release will support for CallConv::Cold as it was already effectively equivalent to the default calling convention.
1 parent 9c369a4 commit c1569cc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/abi/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ pub(crate) fn conv_to_call_conv(
5353
default_call_conv: CallConv,
5454
) -> CallConv {
5555
match c {
56-
CanonAbi::Rust | CanonAbi::C => default_call_conv,
57-
CanonAbi::RustCold => CallConv::Cold,
56+
CanonAbi::Rust | CanonAbi::RustCold | CanonAbi::C => default_call_conv,
5857

5958
// Functions with this calling convention can only be called from assembly, but it is
6059
// possible to declare an `extern "custom"` block, so the backend still needs a calling

0 commit comments

Comments
 (0)