don't call mro_method_changed_in on anon stashes
Jesse Luehrs [Sat, 10 Dec 2011 08:21:55 +0000 (02:21 -0600)]
XS.xs

diff --git a/XS.xs b/XS.xs
index bfc23a2..d3ce6aa 100644 (file)
--- a/XS.xs
+++ b/XS.xs
         GvASSUMECV_on(g);               \
     }                                   \
     GvCVGEN(g) = 0;                     \
-    mro_method_changed_in(GvSTASH(g));  \
+    if (HvENAME_get(GvSTASH(g)))        \
+        mro_method_changed_in(GvSTASH(g)); \
 } while (0)
 #define GvSetIO(g,v) do {               \
     SvREFCNT_dec(GvIO(g));              \