Skip to content

Commit

Permalink
Fix code-gen thinko in p6return.
Browse files Browse the repository at this point in the history
Unbusts given/when as an l-value, which all kinds of things depended
upon.
  • Loading branch information
jnthn committed Jun 22, 2013
1 parent d02067f commit 01fc34b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/vm/jvm/Perl6/Ops.nqp
Expand Up @@ -77,6 +77,9 @@ $ops.add_hll_op('perl6', 'p6return', -> $qastcomp, $op {
$il.append(JAST::Instruction.new( :op('aload'), 'cf' ));
$il.append(JAST::Instruction.new( :op('invokestatic'), $TYPE_OPS,
'return_o', 'Void', $TYPE_SMO, $TYPE_CF ));
$il.append(JAST::Instruction.new( :op('aload'), 'cf' ));
$il.append(JAST::Instruction.new( :op('invokevirtual'),
$TYPE_CF, 'leave', 'Void' ));
$il.append(JAST::Instruction.new( :op('return') ));
$ops.result($il, $RT_OBJ);
});
Expand Down

0 comments on commit 01fc34b

Please sign in to comment.