Fix bug in emit API

This commit is contained in:
Alexey Andreev 2015-06-30 23:08:58 +03:00
parent 6ab53cbf6a
commit 04c6d77c87

View File

@ -258,7 +258,7 @@ public class ValueEmitter {
GetElementInstruction insn = new GetElementInstruction(); GetElementInstruction insn = new GetElementInstruction();
insn.setArray(variable); insn.setArray(variable);
insn.setIndex(index.variable); insn.setIndex(index.variable);
insn.setReceiver(variable); insn.setReceiver(result);
pe.addInstruction(insn); pe.addInstruction(insn);
return pe.var(result); return pe.var(result);
} }