Skip to content

Commit

Permalink
revert poststatement-ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
leventeBajczi committed Nov 11, 2024
1 parent d85d701 commit 978ac72
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,7 @@ public Function<Expr<?>, Expr<?>> visitPostfixExpressionIncrement(
cexpr = new CExpr(expr, parseContext);
// no need to truncate here, as left and right side types are the same
CAssignment cAssignment = new CAssignment(primary, cexpr, "=", parseContext);
postStatements.add(0, cAssignment);
postStatements.add(cAssignment);
functionVisitor.recordMetadata(ctx, cAssignment);
functionVisitor.recordMetadata(ctx, cexpr);
return primary;
Expand All @@ -1004,7 +1004,7 @@ public Function<Expr<?>, Expr<?>> visitPostfixExpressionDecrement(
cexpr = new CExpr(expr, parseContext);
// no need to truncate here, as left and right side types are the same
CAssignment cAssignment = new CAssignment(primary, cexpr, "=", parseContext);
postStatements.add(0, cAssignment);
postStatements.add(cAssignment);
functionVisitor.recordMetadata(ctx, cAssignment);
functionVisitor.recordMetadata(ctx, cexpr);
return expr;
Expand Down

0 comments on commit 978ac72

Please sign in to comment.