From 04c6d77c87dd4505ae50e7ee94dc0731be15e8af Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Tue, 30 Jun 2015 23:08:58 +0300 Subject: [PATCH] Fix bug in emit API --- teavm-core/src/main/java/org/teavm/model/emit/ValueEmitter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teavm-core/src/main/java/org/teavm/model/emit/ValueEmitter.java b/teavm-core/src/main/java/org/teavm/model/emit/ValueEmitter.java index 479b1955b..e72b238de 100644 --- a/teavm-core/src/main/java/org/teavm/model/emit/ValueEmitter.java +++ b/teavm-core/src/main/java/org/teavm/model/emit/ValueEmitter.java @@ -258,7 +258,7 @@ public class ValueEmitter { GetElementInstruction insn = new GetElementInstruction(); insn.setArray(variable); insn.setIndex(index.variable); - insn.setReceiver(variable); + insn.setReceiver(result); pe.addInstruction(insn); return pe.var(result); }