| ... | @@ -5294,9 +5294,11 @@ fn orelseCatchExpr( | ... | @@ -5294,9 +5294,11 @@ fn orelseCatchExpr( |
| 5294 | // up for this fact by calling rvalue on the else branch. | 5294 | // up for this fact by calling rvalue on the else branch. |
| 5295 | const operand = try reachableExpr(&block_scope, &block_scope.base, operand_ri, lhs, rhs); | 5295 | const operand = try reachableExpr(&block_scope, &block_scope.base, operand_ri, lhs, rhs); |
| 5296 | const cond = try block_scope.addUnNode(cond_op, operand, node); | 5296 | const cond = try block_scope.addUnNode(cond_op, operand, node); |
| 5297 | const condbr = try block_scope.addCondBr(.condbr, node); | 5297 | const condbr_tag: Zir.Inst.Tag = if (parent_gz.force_comptime) .condbr_inline else .condbr; |
| | 5298 | const condbr = try block_scope.addCondBr(condbr_tag, node); |
| 5298 | | 5299 | |
| 5299 | const block = try parent_gz.makeBlockInst(.block, node); | 5300 | const block_tag: Zir.Inst.Tag = if (parent_gz.force_comptime) .block_inline else .block; |
| | 5301 | const block = try parent_gz.makeBlockInst(block_tag, node); |
| 5300 | try block_scope.setBlockBody(block); | 5302 | try block_scope.setBlockBody(block); |
| 5301 | // block_scope unstacked now, can add new instructions to parent_gz | 5303 | // block_scope unstacked now, can add new instructions to parent_gz |
| 5302 | try parent_gz.instructions.append(astgen.gpa, block); | 5304 | try parent_gz.instructions.append(astgen.gpa, block); |
| ... | @@ -5608,9 +5610,11 @@ fn ifExpr( | ... | @@ -5608,9 +5610,11 @@ fn ifExpr( |
| 5608 | } | 5610 | } |
| 5609 | }; | 5611 | }; |
| 5610 | | 5612 | |
| 5611 | const condbr = try block_scope.addCondBr(.condbr, node); | 5613 | const condbr_tag: Zir.Inst.Tag = if (parent_gz.force_comptime) .condbr_inline else .condbr; |
| | 5614 | const condbr = try block_scope.addCondBr(condbr_tag, node); |
| 5612 | | 5615 | |
| 5613 | const block = try parent_gz.makeBlockInst(.block, node); | 5616 | const block_tag: Zir.Inst.Tag = if (parent_gz.force_comptime) .block_inline else .block; |
| | 5617 | const block = try parent_gz.makeBlockInst(block_tag, node); |
| 5614 | try block_scope.setBlockBody(block); | 5618 | try block_scope.setBlockBody(block); |
| 5615 | // block_scope unstacked now, can add new instructions to parent_gz | 5619 | // block_scope unstacked now, can add new instructions to parent_gz |
| 5616 | try parent_gz.instructions.append(astgen.gpa, block); | 5620 | try parent_gz.instructions.append(astgen.gpa, block); |