Skip to content

Commit

Permalink
Add back compiling return value with want-decont
Browse files Browse the repository at this point in the history
Which can lead to significantly better code quality in cases where
the thing being returned might otherwise compile into a lexical
reference.
  • Loading branch information
jnthn committed Jun 21, 2018
1 parent 70bad89 commit b506292
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Perl6/Actions.nqp
Expand Up @@ -784,7 +784,7 @@ register_op_desugar('p6decontrv_internal', sub ($qast) {
QAST::Op.new(
:op('bind'),
QAST::Var.new( :name($result), :scope('local'), :decl('var') ),
$qast[0]
QAST::Op.new( :op('wantdecont'), $qast[0] )
),
QAST::Op.new(
# If it's a container...
Expand Down

0 comments on commit b506292

Please sign in to comment.