about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/declare.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-08-05 12:49:31 +0200
committerRalf Jung <post@ralfj.de>2024-08-07 19:49:48 +0200
commit273c67db83caf0260956b87dd976a7727e4d2cd3 (patch)
tree63219f197bc3b43836f5faf5cf42918abe890f85 /compiler/rustc_codegen_llvm/src/declare.rs
parent8d0066922b14cee3175e8c141e5e909fa6d9a6eb (diff)
downloadrust-273c67db83caf0260956b87dd976a7727e4d2cd3.tar.gz
rust-273c67db83caf0260956b87dd976a7727e4d2cd3.zip
codegen: better centralize function attribute computation
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/declare.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/declare.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/declare.rs b/compiler/rustc_codegen_llvm/src/declare.rs
index c4887464e19..2aa349b2782 100644
--- a/compiler/rustc_codegen_llvm/src/declare.rs
+++ b/compiler/rustc_codegen_llvm/src/declare.rs
@@ -137,7 +137,7 @@ impl<'ll, 'tcx> CodegenCx<'ll, 'tcx> {
             llvm::Visibility::Default,
             fn_abi.llvm_type(self),
         );
-        fn_abi.apply_attrs_llfn(self, llfn);
+        fn_abi.apply_attrs_llfn(self, llfn, instance);
 
         if self.tcx.sess.is_sanitizer_cfi_enabled() {
             if let Some(instance) = instance {