add missing visit of lhs in a modulo expresion

This commit is contained in:
2019-12-19 14:47:26 +01:00
parent c3ad231650
commit d1f8a18bef

View File

@@ -118,6 +118,7 @@ public class GenASM implements Visitor<Void> {
@Override
public Void visit(ModuloExpression e) {
e.lhs.welcome(this);
this.ex.write(" pushq %rax\n");
e.rhs.welcome(this);
this.ex.write(" movq %rax, %rbx\n");