Fix: Additional parameters not pushed onto stack

This commit is contained in:
Marvin Kaiser
2019-12-17 16:45:32 +01:00
parent d4dfe27bc0
commit e71ccf1cdc

View File

@@ -258,6 +258,7 @@ public class GenASM implements Visitor<Void> {
// Den Rest auf den stack pushen
for (int i = this.rs.length; i < e.arguments.length; i++) {
e.arguments[i].welcome(this);
this.ex.write(" pushq %rax\n");
}
this.ex.write(" call " + e.name + "\n");