Skip to content

Commit

Permalink
be a bit less wrong about void context detection
Browse files Browse the repository at this point in the history
still does not work at all :(
  • Loading branch information
moritz committed Feb 16, 2013
1 parent a10db62 commit f41f314
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Perl6/Optimizer.pm
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ class Perl6::Optimizer {
while $i < +@($node) {
my $outer_void := $*VOID_CONTEXT;
unless $skip_selectors && $i % 2 {
my $*VOID_CONTEXT := $outer_void || $i != $r;
my $*VOID_CONTEXT := $outer_void || ($i != -1 && $i != $r);
my $visit := $node[$i];
if nqp::istype($visit, QAST::Op) {
$node[$i] := self.visit_op($visit)
Expand Down

0 comments on commit f41f314

Please sign in to comment.