diff options
| author | Folkert de Vries <folkert@folkertdev.nl> | 2025-07-02 10:46:15 +0200 |
|---|---|---|
| committer | Folkert de Vries <folkert@folkertdev.nl> | 2025-07-16 21:38:58 +0200 |
| commit | ec0ff720d1a89cb51edd90116c6e70051affa95f (patch) | |
| tree | 5c0005c15fd2164d009c0cc38e42262350919cce /compiler/rustc_codegen_ssa/src/mir/debuginfo.rs | |
| parent | f100767dce1fcc0287047053cc29659ac5321a6b (diff) | |
| download | rust-ec0ff720d1a89cb51edd90116c6e70051affa95f.tar.gz rust-ec0ff720d1a89cb51edd90116c6e70051affa95f.zip | |
add `codegen_instance_attrs` query
and use it for naked functions
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/mir/debuginfo.rs')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/mir/debuginfo.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/mir/debuginfo.rs b/compiler/rustc_codegen_ssa/src/mir/debuginfo.rs index 025f5fb54f4..b8f635ab781 100644 --- a/compiler/rustc_codegen_ssa/src/mir/debuginfo.rs +++ b/compiler/rustc_codegen_ssa/src/mir/debuginfo.rs @@ -356,7 +356,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> { LocalRef::Operand(operand) => { // Don't spill operands onto the stack in naked functions. // See: https://github.com/rust-lang/rust/issues/42779 - let attrs = bx.tcx().codegen_fn_attrs(self.instance.def_id()); + let attrs = bx.tcx().codegen_instance_attrs(self.instance.def); if attrs.flags.contains(CodegenFnAttrFlags::NAKED) { return; } |
