Skip to content
This repository has been archived by the owner on Jun 15, 2024. It is now read-only.

Commit

Permalink
fix: Return didn't stop the function
Browse files Browse the repository at this point in the history
  • Loading branch information
06Games committed Jun 11, 2024
1 parent 756267a commit b9ca712
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions generation_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ def gen_instruction(instruction):
if returnType != expectedType:
erreur(f"Incorrect return type expected {typeStr(expectedType)} got {typeStr(returnType)}")
arm_instruction("pop", "{r2}", comment="Return value")
arm_instruction("pop", "{fp, pc}")
else:
erreur("génération type instruction non implémenté " + typeStr(type(instruction)))
return None
Expand Down

0 comments on commit b9ca712

Please sign in to comment.