Skip to content

Commit

Permalink
Add a missing guard to the Nil assignment plugin
Browse files Browse the repository at this point in the history
Fixes a regression introduced by c7056f2.
  • Loading branch information
jnthn committed Aug 20, 2019
1 parent 6a88590 commit 0dd6573
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/vm/moar/spesh-plugins.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ nqp::speshreg('perl6', 'assign', sub ($cont, $value) {
if nqp::eqaddr($value, Nil) {
# Yes; just copy in the default, provided we've a simple type.
if $of.HOW.archetypes.nominal {
nqp::speshguardtype($value, $value.WHAT);
nqp::speshguardtype($desc, $desc.WHAT);
nqp::speshguardconcrete($desc);
my $of := nqp::speshguardgetattr($desc, ContainerDescriptor, '$!of');
Expand Down

0 comments on commit 0dd6573

Please sign in to comment.