Skip to content

Commit

Permalink
[IR] Do it right this time (Fixed IR generation bug for OpElementAsgn…
Browse files Browse the repository at this point in the history
…Node)
  • Loading branch information
subbuss authored and BanzaiMan committed Sep 20, 2011
1 parent 0f042dd commit 6b23054
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/org/jruby/compiler/ir/IRBuilder.java
Expand Up @@ -2647,6 +2647,7 @@ public Operand buildOpElementAsgnWithOr(Node node, IRScope s) {
s.addInstr(new IsTrueInstr(flag, elt));
s.addInstr(new BEQInstr(flag, BooleanLiteral.TRUE, l));
Operand value = build(opElementAsgnNode.getValueNode(), s);
argList.add(value);
s.addInstr(CallInstr.create(elt, new MethAddr("[]="), array, argList.toArray(new Operand[argList.size()]), null));
s.addInstr(new CopyInstr(elt, value));
s.addInstr(new LABEL_Instr(l));
Expand Down

0 comments on commit 6b23054

Please sign in to comment.