Skip to content

Commit fc90164

Browse files
committed
Fix subrule compilation bug, which nails the last t/nqp regression.
1 parent 5745da8 commit fc90164

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/QAST/Compiler.nqp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1468,7 +1468,7 @@ class QAST::Compiler is HLL::Compiler {
14681468

14691469
method subrule($node) {
14701470
my $ops := self.post_new('Ops', :result(%*REG<cur>));
1471-
my $name := $*PASTCOMPILER.as_post($node.name, :rtype<*>);
1471+
my $name := nqp::defined($node.name) ?? $*PASTCOMPILER.as_post($node.name, :rtype<*>) !! '';
14721472
my $subtype := $node.subtype;
14731473
my $cpn := nqp::istype($node[0], QAST::Node)
14741474
?? self.children($node[0])

0 commit comments

Comments
 (0)