Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielegenovese committed Jul 14, 2024
1 parent ed58dc2 commit f810564
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ast/nodes/ReturnStmtNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public Type typeCheck() {
public String codeGeneration() {
String expS = exprList.codeGeneration();
if(localvar > 0) {
expS += "subi SP " + localvar + "\n";
expS += "addi SP " + localvar + "\n";
}
return expS +
"popr RA\n" +
Expand Down

0 comments on commit f810564

Please sign in to comment.