mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:24:33 +01:00
codegen: fix accidental stack UAF
This commit is contained in:
parent
b483defc5a
commit
b4a0a082dc
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ pub fn legalizeFeatures(pt: Zcu.PerThread, nav_index: InternPool.Nav.Index) *con
|
|||
.stage2_powerpc,
|
||||
=> |backend| {
|
||||
const Backend = importBackend(backend);
|
||||
return if (@hasDecl(Backend, "legalizeFeatures")) Backend.legalizeFeatures(target) else &.initEmpty();
|
||||
return if (@hasDecl(Backend, "legalizeFeatures")) Backend.legalizeFeatures(target) else comptime &.initEmpty();
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue