mirror of
https://github.com/ziglang/zig.git
synced 2026-01-21 06:45:24 +00:00
codegen: fix accidental stack UAF
This commit is contained in:
parent
b483defc5a
commit
b4a0a082dc
@ -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…
x
Reference in New Issue
Block a user