Fixed function call

This commit is contained in:
Sanjar Ahmadov
2021-05-04 11:53:14 -04:00
parent 398563d8ba
commit 34494a5597
+1 -1
View File
@@ -323,7 +323,7 @@ public class CodeGenImpl extends CodeGenBase
}
backend.emitADDI(SP, SP, -spaceRequiredForArgs, "Set SP to last argument.");
backend.emitJAL(new Label("$"+functionId.name), "Invoke function: " + functionId.name);
backend.emitJAL(calleeFunctionInfo.getCodeLabel(), "Invoke function: " + functionId.name);
backend.emitADDI(SP, SP, spaceRequiredForArgs, "Set SP to stack frame top.");
}
return A0;