This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Refactor newATTRSUB()'s logic for grafting a sub definition to an existing stub
[perl5.git] / pp.c
diff --git a/pp.c b/pp.c
index 4ae130b..9e762d5 100644 (file)
--- a/pp.c
+++ b/pp.c
@@ -901,7 +901,7 @@ PP(pp_undef)
                 mro_isa_changed_in(stash);
             else if(method_changed)
                 mro_method_changed_in(
-                 stash ? stash : GvSTASH((const GV *)sv)
+                 GvSTASH((const GV *)sv)
                 );
 
            break;