Commit 0d119e64 authored by Stephanie Gawroriski's avatar Stephanie Gawroriski
Browse files

Only use cached values on a method call if they are sourced from the stack.

parent 043fb263
......@@ -189,7 +189,11 @@ class __CodeWriter__
CodeVariable[] stack = this._cache._stack;
int n = __args.length;
for (int i = 0; i < n; i++)
__args[i] = stack[__args[i].id()];
CodeVariable var = __args[i];
if (var.isStack())
__args[i] = stack[];
// Forward call
this.codewriter.invokeMethod(__link, __rv, __args);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment