Skip to content

Commit

Permalink
Fix incorrect use of cleardispatcher for takenextdispatcher
Browse files Browse the repository at this point in the history
  • Loading branch information
vrurg committed Mar 5, 2020
1 parent b88cef3 commit 508cb7e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Perl6/Optimizer.nqp
Expand Up @@ -703,7 +703,9 @@ my class BlockVarOptimizer {
while $iter {
nqp::shift($iter);
my $op := nqp::iterval($iter);
$op.op('cleardispatcher');
my $name := nqp::iterkey_s($iter);
# Replace 'take' with 'clear' in the op name.
$op.op(nqp::replace($name, 0, 4, 'clear'));
$op.shift();
}
}
Expand Down

0 comments on commit 508cb7e

Please sign in to comment.