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.
This commit is contained in:
parent
9c369a43ce
commit
c1569cc007
1 changed files with 1 additions and 2 deletions
|
|
@ -53,8 +53,7 @@ pub(crate) fn conv_to_call_conv(
|
|||
default_call_conv: CallConv,
|
||||
) -> CallConv {
|
||||
match c {
|
||||
CanonAbi::Rust | CanonAbi::C => default_call_conv,
|
||||
CanonAbi::RustCold => CallConv::Cold,
|
||||
CanonAbi::Rust | CanonAbi::RustCold | CanonAbi::C => default_call_conv,
|
||||
|
||||
// Functions with this calling convention can only be called from assembly, but it is
|
||||
// possible to declare an `extern "custom"` block, so the backend still needs a calling
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue