Fixed order of execution for AddInstr construction

This commit is contained in:
Tristan B. Velloza Kildaire 2021-10-26 21:15:26 +02:00
parent 5b70175de4
commit fcfde58b98
1 changed files with 3 additions and 3 deletions

View File

@ -254,11 +254,11 @@ public final class TypeChecker
*
* Retrieve the two Value Instructions
*
* STACK AFFECT: We could swap these for correct ordering
* (FIXME, not urgent but needed)
* They would be placed as if they were on stack
* hence we need to burger-flip them around (swap)
*/
Instruction vLhsInstr = popInstr();
Instruction vRhsInstr = popInstr();
Instruction vLhsInstr = popInstr();
AddInstr addInst = new AddInstr(vLhsInstr, vRhsInstr);
addInstr(addInst);