add missing visit of lhs in a modulo expresion
This commit is contained in:
@@ -118,6 +118,7 @@ public class GenASM implements Visitor<Void> {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Void visit(ModuloExpression e) {
|
public Void visit(ModuloExpression e) {
|
||||||
|
e.lhs.welcome(this);
|
||||||
this.ex.write(" pushq %rax\n");
|
this.ex.write(" pushq %rax\n");
|
||||||
e.rhs.welcome(this);
|
e.rhs.welcome(this);
|
||||||
this.ex.write(" movq %rax, %rbx\n");
|
this.ex.write(" movq %rax, %rbx\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user