Skip to content

Commit

Permalink
Merge pull request #2597 from MasterDuke17/fix_R#2593
Browse files Browse the repository at this point in the history
Don't add concreteness guard if return value = Nil
  • Loading branch information
lizmat committed Jan 10, 2019
2 parents 2b948fc + 7aa796a commit 05cc8cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm/moar/spesh-plugins.nqp
Expand Up @@ -257,7 +257,7 @@ sub identity($obj) { $obj }
if $definite_check == 0 {
nqp::speshguardtypeobj($rv);
}
elsif $definite_check == 1 {
elsif $definite_check == 1 && !nqp::istype($rv, Nil) {
nqp::speshguardconcrete($rv);
}

Expand Down

0 comments on commit 05cc8cd

Please sign in to comment.