| ... | @@ -6521,7 +6521,7 @@ static IrInstruction *ir_gen_for_expr(IrBuilder *irb, Scope *parent_scope, AstNo | ... | @@ -6521,7 +6521,7 @@ static IrInstruction *ir_gen_for_expr(IrBuilder *irb, Scope *parent_scope, AstNo |
| 6521 | loop_scope->is_comptime = is_comptime; | 6521 | loop_scope->is_comptime = is_comptime; |
| 6522 | loop_scope->incoming_blocks = &incoming_blocks; | 6522 | loop_scope->incoming_blocks = &incoming_blocks; |
| 6523 | loop_scope->incoming_values = &incoming_values; | 6523 | loop_scope->incoming_values = &incoming_values; |
| 6524 | loop_scope->lval = lval; | 6524 | loop_scope->lval = LValNone; |
| 6525 | loop_scope->peer_parent = peer_parent; | 6525 | loop_scope->peer_parent = peer_parent; |
| 6526 | | 6526 | |
| 6527 | // Note the body block of the loop is not the place that lval and result_loc are used - | 6527 | // Note the body block of the loop is not the place that lval and result_loc are used - |
| ... | @@ -6548,7 +6548,7 @@ static IrInstruction *ir_gen_for_expr(IrBuilder *irb, Scope *parent_scope, AstNo | ... | @@ -6548,7 +6548,7 @@ static IrInstruction *ir_gen_for_expr(IrBuilder *irb, Scope *parent_scope, AstNo |
| 6548 | } | 6548 | } |
| 6549 | ResultLocPeer *peer_result = create_peer_result(peer_parent); | 6549 | ResultLocPeer *peer_result = create_peer_result(peer_parent); |
| 6550 | peer_parent->peers.append(peer_result); | 6550 | peer_parent->peers.append(peer_result); |
| 6551 | else_result = ir_gen_node_extra(irb, else_node, parent_scope, lval, &peer_result->base); | 6551 | else_result = ir_gen_node_extra(irb, else_node, parent_scope, LValNone, &peer_result->base); |
| 6552 | if (else_result == irb->codegen->invalid_instruction) | 6552 | if (else_result == irb->codegen->invalid_instruction) |
| 6553 | return else_result; | 6553 | return else_result; |
| 6554 | if (!instr_is_unreachable(else_result)) | 6554 | if (!instr_is_unreachable(else_result)) |
| ... | @@ -6570,7 +6570,7 @@ static IrInstruction *ir_gen_for_expr(IrBuilder *irb, Scope *parent_scope, AstNo | ... | @@ -6570,7 +6570,7 @@ static IrInstruction *ir_gen_for_expr(IrBuilder *irb, Scope *parent_scope, AstNo |
| 6570 | | 6570 | |
| 6571 | IrInstruction *phi = ir_build_phi(irb, parent_scope, node, incoming_blocks.length, | 6571 | IrInstruction *phi = ir_build_phi(irb, parent_scope, node, incoming_blocks.length, |
| 6572 | incoming_blocks.items, incoming_values.items, peer_parent); | 6572 | incoming_blocks.items, incoming_values.items, peer_parent); |
| 6573 | return ir_expr_wrap(irb, parent_scope, phi, result_loc); | 6573 | return ir_lval_wrap(irb, parent_scope, phi, lval, result_loc); |
| 6574 | } | 6574 | } |
| 6575 | | 6575 | |
| 6576 | static IrInstruction *ir_gen_bool_literal(IrBuilder *irb, Scope *scope, AstNode *node) { | 6576 | static IrInstruction *ir_gen_bool_literal(IrBuilder *irb, Scope *scope, AstNode *node) { |