diff options
| author | Folkert de Vries <folkert@folkertdev.nl> | 2025-07-02 11:12:54 +0200 |
|---|---|---|
| committer | Folkert de Vries <folkert@folkertdev.nl> | 2025-07-16 23:24:32 +0200 |
| commit | 9c8ab891876b37aac458a7461d904fe593856745 (patch) | |
| tree | c45dc07eff1a71859ab5e115649a80338c65355a /compiler/rustc_codegen_llvm/src/attributes.rs | |
| parent | ec0ff720d1a89cb51edd90116c6e70051affa95f (diff) | |
| download | rust-9c8ab891876b37aac458a7461d904fe593856745.tar.gz rust-9c8ab891876b37aac458a7461d904fe593856745.zip | |
use `codegen_instance_attrs` where an instance is (easily) available
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/attributes.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/attributes.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/attributes.rs b/compiler/rustc_codegen_llvm/src/attributes.rs index 1ea5a062254..c32f11b27f3 100644 --- a/compiler/rustc_codegen_llvm/src/attributes.rs +++ b/compiler/rustc_codegen_llvm/src/attributes.rs @@ -344,7 +344,7 @@ pub(crate) fn llfn_attrs_from_instance<'ll, 'tcx>( llfn: &'ll Value, instance: ty::Instance<'tcx>, ) { - let codegen_fn_attrs = cx.tcx.codegen_fn_attrs(instance.def_id()); + let codegen_fn_attrs = cx.tcx.codegen_instance_attrs(instance.def); let mut to_add = SmallVec::<[_; 16]>::new(); |
