fix: operations polluting stack
This commit is contained in:
parent
ee78bdc1cb
commit
9845a39e84
@ -110,8 +110,8 @@ public class OperationNode extends Node {
|
|||||||
arg.compile(target, true);
|
arg.compile(target, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pollute) target.add(Instruction.operation(operation));
|
target.add(Instruction.operation(operation));
|
||||||
else target.add(Instruction.discard());
|
if (!pollute) target.add(Instruction.discard());
|
||||||
}
|
}
|
||||||
|
|
||||||
public OperationNode(Location loc, Operation operation, Node ...args) {
|
public OperationNode(Location loc, Operation operation, Node ...args) {
|
||||||
|
Loading…
Reference in New Issue
Block a user