diff --git a/src/librustc_trans/trans/abi.rs b/src/librustc_trans/trans/abi.rs index 440d5a8d816..d796817fd0f 100644 --- a/src/librustc_trans/trans/abi.rs +++ b/src/librustc_trans/trans/abi.rs @@ -432,5 +432,9 @@ impl FnType { i += 1; } } + + if self.cconv != llvm::CCallConv { + llvm::SetInstructionCallConv(callsite, self.cconv); + } } }