Skip to content

Commit 4165a18

Browse files
committed
Fix CONTROL handler compilation on Moar.
1 parent f1c2da5 commit 4165a18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vm/moar/QAST/QASTOperationsMAST.nqp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1485,7 +1485,7 @@ QAST::MASTOperations.add_core_op('handle', sub ($qastcomp, $op) {
14851485
unless nqp::existskey(%handler_names, $type) {
14861486
nqp::die("Invalid handler type '$type'");
14871487
}
1488-
my $cat_mask := %handler_names{$type};
1488+
my $cat_mask := $type eq 'CONTROL' ?? 0xFFE !! %handler_names{$type};
14891489

14901490
# Chain in this handler.
14911491
my $check := QAST::Op.new(

0 commit comments

Comments
 (0)