| ... | ... | @@ -2679,10 +2679,15 @@ fn walkInstruction( |
| 2679 | 2679 | array_data[scalar_i] = item.expr.as.exprArg; |
| 2680 | 2680 | |
| 2681 | 2681 | const body_ref = @intToEnum(Ref, file.zir.extra[extra_index]); |
| 2682 | | const body_item = try self.walkRef(file, parent_scope, body_ref, false); |
| 2683 | | _ = body_item; |
| 2684 | | |
| 2685 | | array_data[scalar_i] = item.expr.as.exprArg; |
| 2682 | if (extra.data.bits.is_ref) { |
| 2683 | const body_item = try self.walkRef(file, parent_scope, body_ref, false); |
| 2684 | _ = body_item; |
| 2685 | |
| 2686 | array_data[scalar_i] = item.expr.as.exprArg; |
| 2687 | } else { |
| 2688 | array_data[scalar_i] = 0; |
| 2689 | // TODO: this is wrong, decide an actual strategy |
| 2690 | } |
| 2686 | 2691 | // std.debug.print("{s}\n", .{sep}); |
| 2687 | 2692 | // std.debug.print("body item_ref = {any}\n", .{item_ref}); |
| 2688 | 2693 | // std.debug.print("body item = {any}\n", .{item}); |