Skip to content

Commit 7454b5c

Browse files
committed
trans: Set the calling convention in apply_attrs_callsite.
1 parent 77f3484 commit 7454b5c

File tree

1 file changed

+4
-0
lines changed
  • src/librustc_trans/trans

1 file changed

+4
-0
lines changed

src/librustc_trans/trans/abi.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,5 +432,9 @@ impl FnType {
432432
i += 1;
433433
}
434434
}
435+
436+
if self.cconv != llvm::CCallConv {
437+
llvm::SetInstructionCallConv(callsite, self.cconv);
438+
}
435439
}
436440
}

0 commit comments

Comments
 (0)