Skip to content

Commit

Permalink
fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
totalspectrum committed Nov 18, 2024
1 parent 2582d00 commit c7a2216
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontends/spin/spinlang.c
Original file line number Diff line number Diff line change
Expand Up @@ -664,10 +664,6 @@ doSpinTransform(AST **astptr, int level, AST *parent)
AST *tmp;
AST *seq1, *seq2;

/* fix up sub-pieces */
doSpinTransform(&ast->left, 0, ast);
doSpinTransform(&ast->right, 0, ast);

AstReportAs(ast, &saveinfo);
ast->right = target = DupAST(ast->right);
if (IsConstExpr(ast->left)) {
Expand Down Expand Up @@ -717,6 +713,10 @@ doSpinTransform(AST **astptr, int level, AST *parent)
*astptr = ast = seq2;
}
AstReportDone(&saveinfo);
// if we did a transform,
// we may have a range reference in here, so do the
// transform on the result
doSpinTransform(astptr, level, ast);
break;
}
case AST_ASSIGN:
Expand Down

0 comments on commit c7a2216

Please sign in to comment.