Sema: fix typo bug for boolean ops (and, or)

This commit is contained in:
gracefu 2021-04-08 05:25:29 +08:00
parent e4a60b63f2
commit 6dc35efe49
No known key found for this signature in database
GPG Key ID: 2B0D39CC4E035325

View File

@ -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 = .{