Skip to content

Commit

Permalink
fix broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
totalspectrum committed Dec 1, 2024
1 parent 0b6e6be commit f61a7db
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions frontends/hltransform.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ fixReferences(AST **astptr, int incdecop)
case AST_ASSIGN_INIT:
/* leave the LHS alone, if it's a reference we are assigning it */
fixReferences(&ast->right, incdecop);
break;
return;
case AST_OPERATOR:
if (ast->d.ival == K_REF_PREINC || ast->d.ival == K_REF_PREDEC
|| ast->d.ival == K_REF_POSTINC || ast->d.ival == K_REF_POSTDEC) {
Expand All @@ -66,6 +66,7 @@ fixReferences(AST **astptr, int incdecop)
fixReferences(&ast->left, op);
fixReferences(&ast->right, op);
*astptr = (ast->left) ? ast->left : ast->right;
return;
}
}
break;
Expand All @@ -75,13 +76,14 @@ fixReferences(AST **astptr, int incdecop)
if (typ && IsRefType(typ)) {
fixReferences(&ast->left, '@');
*astptr = ast->left;
return;
}
break;
default:
fixReferences(&ast->left, incdecop);
fixReferences(&ast->right, incdecop);
break;
}
fixReferences(&ast->left, incdecop);
fixReferences(&ast->right, incdecop);
}

/*
Expand Down

0 comments on commit f61a7db

Please sign in to comment.