| ... | ... | @@ -2601,8 +2601,8 @@ fn varDecl( |
| 2601 | 2601 | |
| 2602 | 2602 | var resolve_inferred_alloc: Zir.Inst.Ref = .none; |
| 2603 | 2603 | var opt_type_inst: Zir.Inst.Ref = .none; |
| 2604 | | if (var_decl.ast.type_node != 0) { |
| 2605 | | const type_inst = try typeExpr(gz, &init_scope.base, var_decl.ast.type_node); |
| 2604 | if (type_node != 0) { |
| 2605 | const type_inst = try typeExpr(gz, &init_scope.base, type_node); |
| 2606 | 2606 | opt_type_inst = type_inst; |
| 2607 | 2607 | if (align_inst == .none) { |
| 2608 | 2608 | init_scope.instructions_top = gz.instructions.items.len; |
| ... | ... | @@ -2683,7 +2683,7 @@ fn varDecl( |
| 2683 | 2683 | const src_inst = gz.instructions.items[src]; |
| 2684 | 2684 | if (zir_tags[src_inst] == .store_to_block_ptr) { |
| 2685 | 2685 | if (zir_datas[src_inst].bin.lhs == init_scope.rl_ptr) { |
| 2686 | | if (var_decl.ast.type_node != 0) { |
| 2686 | if (type_node != 0) { |
| 2687 | 2687 | zir_tags[src_inst] = .store; |
| 2688 | 2688 | } else { |
| 2689 | 2689 | zir_tags[src_inst] = .store_to_inferred_ptr; |