mirror of
https://github.com/ziglang/zig.git
synced 2026-01-09 08:55:36 +00:00
Sema: fix typo bug for boolean ops (and, or)
This commit is contained in:
parent
e4a60b63f2
commit
6dc35efe49
@ -3833,7 +3833,7 @@ fn zirBoolBr(
|
||||
_ = try rhs_block.addBr(src, block_inst, rhs_result);
|
||||
|
||||
const tzir_then_body: ir.Body = .{ .instructions = try sema.arena.dupe(*Inst, then_block.instructions.items) };
|
||||
const tzir_else_body: ir.Body = .{ .instructions = try sema.arena.dupe(*Inst, rhs_block.instructions.items) };
|
||||
const tzir_else_body: ir.Body = .{ .instructions = try sema.arena.dupe(*Inst, else_block.instructions.items) };
|
||||
_ = try child_block.addCondBr(src, lhs, tzir_then_body, tzir_else_body);
|
||||
|
||||
block_inst.body = .{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user