From: Nicholas Clark Date: Thu, 21 May 2009 14:45:50 +0000 (+0200) Subject: In Perl_magic_setisa(), re-order two independant return early checks. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2243c3b2519b9854cb76fbdb41e692fd0a494fa2;p=p5sagit%2Fp5-mst-13.2.git In Perl_magic_setisa(), re-order two independant return early checks. --- diff --git a/mg.c b/mg.c index 43fd7ba..157d3cd 100644 --- a/mg.c +++ b/mg.c @@ -1537,13 +1537,13 @@ Perl_magic_setisa(pTHX_ SV *sv, MAGIC *mg) PERL_ARGS_ASSERT_MAGIC_SETISA; PERL_UNUSED_ARG(sv); - /* Bail out if destruction is going on */ - if(PL_dirty) return 0; - /* Skip _isaelem because _isa will handle it shortly */ if (PL_delaymagic & DM_ARRAY && mg->mg_type == PERL_MAGIC_isaelem) return 0; + /* Bail out if destruction is going on */ + if(PL_dirty) return 0; + /* XXX Once it's possible, we need to detect that our @ISA is aliased in other stashes, and act on the stashes