Skip to content

Commit

Permalink
Fix compound test when OPTIMIZE_CONSTANT_PARAM
Browse files Browse the repository at this point in the history
  • Loading branch information
laurenthuberdeau committed Sep 30, 2024
1 parent 4955f0f commit 8673510
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sh.c
Original file line number Diff line number Diff line change
Expand Up @@ -2109,6 +2109,8 @@ void mark_mutable_variables_statement(ast node) {
int op = get_op(node);
ast params;

if (node == 0) return;

if (op == IF_KW) {
mark_mutable_variables_statement(get_child(node, 0));
if (get_child(node, 1)) mark_mutable_variables_body(get_child(node, 1));
Expand Down

0 comments on commit 8673510

Please sign in to comment.