summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-05-21 16:45:50 +0200
committerNicholas Clark <nick@ccl4.org>2009-05-21 16:45:50 +0200
commit2243c3b2519b9854cb76fbdb41e692fd0a494fa2 (patch)
treed41c723cd369b6e5c74c7ad3d9d4ddfc7b8fdd79 /mg.c
parentb14647bbef65df1555e337714aa22f1e154a4462 (diff)
downloadperl-2243c3b2519b9854cb76fbdb41e692fd0a494fa2.tar.gz
In Perl_magic_setisa(), re-order two independant return early checks.
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mg.c b/mg.c
index 43fd7ba894..157d3cdd6e 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