Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Unbreak build on JVM
Apparently, you cannot nqp::bool a null on JVM
  • Loading branch information
lizmat committed Mar 7, 2015
1 parent 1b74e4e commit b497d41
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Perl6/Actions.nqp
Expand Up @@ -2567,9 +2567,12 @@ class Perl6::Actions is HLL::Actions does STDActions {
if $*SOFT {
$*W.find_symbol(['&infix:<does>'])($code, $*W.find_symbol(['SoftRoutine']));
}
elsif !nqp::can($code, 'postcircumfix:<( )>')
&& !nqp::p6bool(nqp::getattr($code, $*W.find_symbol(['Block']), '$!phasers')) {
self.add_inlining_info_if_possible($/, $code, $signature, $block, @params);
elsif !nqp::can($code, 'postcircumfix:<( )>') {
my $phasers :=
nqp::getattr($code,$*W.find_symbol(['Block']),'$!phasers');
if nqp::isnull($phasers) || !nqp::p6bool($phasers) {
self.add_inlining_info_if_possible($/, $code, $signature, $block, @params);
}
}
}

Expand Down

0 comments on commit b497d41

Please sign in to comment.