Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Two pir:: => nqp:: in the optimizer.
  • Loading branch information
jnthn committed Mar 16, 2013
1 parent d98dd54 commit 2a41b33
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Perl6/Optimizer.pm
Expand Up @@ -95,10 +95,11 @@ class Perl6::Optimizer {
nqp::die("CHECK FAILED:\n" ~ nqp::join("\n", @fails))
}
if +%!worrying {
pir::printerr__vs("WARNINGS:\n");
my $err := nqp::getstderr();
nqp::printfh($err, "WARNINGS:\n");
my @fails;
for %!worrying {
pir::printerr__vs($_.key ~ " (line" ~ (+$_.value == 1 ?? ' ' !! 's ') ~
nqp::printfh($err, $_.key ~ " (line" ~ (+$_.value == 1 ?? ' ' !! 's ') ~
nqp::join(', ', $_.value) ~ ")\n");
}
}
Expand Down

0 comments on commit 2a41b33

Please sign in to comment.