Skip to content

Commit b4a0a08

Browse files
mluggjacobly0
authored andcommitted
codegen: fix accidental stack UAF
1 parent b483def commit b4a0a08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codegen.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ pub fn legalizeFeatures(pt: Zcu.PerThread, nav_index: InternPool.Nav.Index) *con
6767
.stage2_powerpc,
6868
=> |backend| {
6969
const Backend = importBackend(backend);
70-
return if (@hasDecl(Backend, "legalizeFeatures")) Backend.legalizeFeatures(target) else &.initEmpty();
70+
return if (@hasDecl(Backend, "legalizeFeatures")) Backend.legalizeFeatures(target) else comptime &.initEmpty();
7171
},
7272
}
7373
}

0 commit comments

Comments
 (0)