Skip to content

Commit 2696e10

Browse files
committed
Make return code-gen something more optimizable.
1 parent 1d725ae commit 2696e10

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/NQP/Actions.nqp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1549,10 +1549,7 @@ class NQP::Actions is HLL::Actions {
15491549
method postfix:sym<.>($/) { make $<dotty>.ast; }
15501550

15511551
method prefix:sym<return>($/) {
1552-
make QAST::Op.new(
1553-
:op('call'),
1554-
QAST::Var.new( :name('RETURN'), :scope('lexical') )
1555-
);
1552+
make QAST::Op.new( :op('call'), :name('RETURN') );
15561553
}
15571554

15581555
method prefix:sym<make>($/) {

0 commit comments

Comments
 (0)