Skip to content

Commit d6370eb

Browse files
committed
bulletproof against nodes without .orig
1 parent 7ab9ad5 commit d6370eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vm/moar/QAST/QASTCompilerMAST.nqp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@ my class MASTCompilerInstance {
11331133

11341134
# Annotate with line number if we have one.
11351135
my $node := $_.node;
1136-
if nqp::isconcrete($node) {
1136+
if nqp::isconcrete($node) && nqp::can($node,'orig') {
11371137
my $line := HLL::Compiler.lineof($node.orig(), $node.from(), :cache(1));
11381138
nqp::push(@all_ins, MAST::Annotated.new(
11391139
:$!file, :$line, :instructions($last_stmt.instructions) ));

0 commit comments

Comments
 (0)