Skip to content

Commit

Permalink
Comment that META_ASSIGN op-doubling on :U's is by design
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Jan 12, 2018
1 parent ac2e50c commit f41d5e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Perl6/Optimizer.nqp
Expand Up @@ -1704,6 +1704,9 @@ class Perl6::Optimizer {
$assignee_var,
$operand));
} else {
# We end up with two calls of the op if var
# is not definite. This is by design:
# https://irclog.perlgeek.de/perl6-dev/2018-01-12#i_15681388
$op.push(QAST::Op.new( :op($call), :name($metaop[0].name),
QAST::Op.new( :op('if'),
QAST::Op.new( :op('p6definite'), $assignee_var),
Expand Down

0 comments on commit f41d5e8

Please sign in to comment.