Fix license headers

This commit is contained in:
lizzie
2026-09-20 07:08:13 +00:00
parent 376dc541ea
commit b9ab300b97
4 changed files with 8 additions and 6 deletions
@@ -511,12 +511,12 @@ void PatchPhiNodes(IR::Program& program, EmitContext& ctx) {
}
// Start "before" first PHI; advance on phi_arg == 0
ctx.phi_index = std::size_t(-1);
ctx.PatchDeferredPhi([&ctx, phi_insts = std::move(phi_instructions)](size_t phi_arg, Id parent) -> std::pair<Id, Id> {
size_t phi_index = size_t(-1);
ctx.PatchDeferredPhi([&ctx, &phi_index, phi_insts = std::move(phi_instructions)](size_t phi_arg, Id parent) -> std::pair<Id, Id> {
if (phi_arg == 0) {
++ctx.phi_index;
++phi_index;
}
IR::Inst* phi = phi_insts[ctx.phi_index];
IR::Inst* phi = phi_insts[phi_index];
return { ctx.Def(phi->Arg(phi_arg)), parent };
});
}