Skip to content

Commit

Permalink
Ignore Nil statements.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Aug 19, 2012
1 parent d3ff8ec commit eee670d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/perl6-debug.nqp
Expand Up @@ -104,7 +104,8 @@ class Perl6::HookActions is Perl6::Actions {
my $stmt := $/.ast;
my $pot_hash := nqp::istype($stmt, QAST::Op) &&
($stmt.name eq '&infix:<,>' || $stmt.name eq '&infix:<=>>');
if !$pot_hash && $*DEBUG_HOOKS.has_hook('statement_simple') {
my $nil := nqp::istype($stmt, QAST::Var) && $stmt.name eq 'Nil';
if !$pot_hash && !$nil && $*DEBUG_HOOKS.has_hook('statement_simple') {
$/.'!make'(QAST::Stmts.new(
QAST::Op.new(
:op('call'),
Expand Down

0 comments on commit eee670d

Please sign in to comment.