| ... | ... | @@ -5065,11 +5065,8 @@ fn airSwitchBr(f: *Function, inst: Air.Inst.Index, is_dispatch_loop: bool) !void |
| 5065 | 5065 | // amount of C code we generate, which is probably more desirable here (and is simpler). |
| 5066 | 5066 | const condition = if (is_dispatch_loop) cond: { |
| 5067 | 5067 | const new_local = try f.allocLocal(inst, condition_ty); |
| 5068 | | try f.writeCValue(writer, new_local, .Other); |
| 5069 | | try writer.writeAll(" = "); |
| 5070 | | try f.writeCValue(writer, init_condition, .Initializer); |
| 5071 | | try writer.writeAll(";\n"); |
| 5072 | | try writer.print("zig_switch_{d}_loop:", .{@intFromEnum(inst)}); |
| 5068 | try f.copyCValue(try f.ctypeFromType(condition_ty, .complete), new_local, init_condition); |
| 5069 | try writer.print("zig_switch_{d}_loop:\n", .{@intFromEnum(inst)}); |
| 5073 | 5070 | try f.loop_switch_conds.put(gpa, inst, new_local.new_local); |
| 5074 | 5071 | break :cond new_local; |
| 5075 | 5072 | } else init_condition; |