Skip to content

Commit 879ea27

Browse files
committed
reduce: fix compile errors
Regressed by c11b6ad.
1 parent 091aa54 commit 879ea27

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/compiler/reduce/Walk.zig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -345,19 +345,19 @@ fn walkExpression(w: *Walk, node: Ast.Node.Index) Error!void {
345345
},
346346

347347
.assign_destructure => {
348-
const full = tree.assignDestructure(node);
348+
const full = ast.assignDestructure(node);
349349
for (full.ast.variables) |variable_node| {
350-
switch (node_tags[lhs_node]) {
350+
switch (node_tags[variable_node]) {
351351
.global_var_decl,
352352
.local_var_decl,
353353
.simple_var_decl,
354354
.aligned_var_decl,
355-
=> try walkLocalVarDecl(w, ast.fullVarDecl(lhs_node).?),
355+
=> try walkLocalVarDecl(w, ast.fullVarDecl(variable_node).?),
356356

357357
else => try walkExpression(w, variable_node),
358358
}
359359
}
360-
return walkExpression(w, full.ast.assign_expr);
360+
return walkExpression(w, full.ast.value_expr);
361361
},
362362

363363
.bit_not,

0 commit comments

Comments
 (0)