Skip to content

Commit

Permalink
teach moarvm that only QAST::Block has arity.
Browse files Browse the repository at this point in the history
  • Loading branch information
timo committed Nov 14, 2013
1 parent 45cc981 commit ab172ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm/moar/QAST/QASTOperationsMAST.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ for ('', 'repeat_') -> $repness {
for $op.list {
if $_.named eq 'nohandler' { $handler := 0; }
else {
my $*HAVE_IMM_ARG := $_.arity > 0 && $_ =:= $op.list[1];
my $*HAVE_IMM_ARG := nqp::istype($_, QAST::Block) && $_.arity > 0 && $_ =:= $op.list[1];
my $comp := $qastcomp.as_mast($_);
@comp_ops.push($comp);
@comp_types.push($comp.result_kind);
Expand Down

0 comments on commit ab172ab

Please sign in to comment.