diff options
author | Andy Lester <andy@petdance.com> | 2006-05-02 19:54:30 -0500 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2006-05-03 09:04:30 +0000 |
commit | 3ea285d10994f16a1808764be228780ee879570d (patch) | |
tree | 3213c2fdc8a215df71d651dd77fdb9ec9f478314 /op.c | |
parent | 4a021917c87977d18a33de03b9e43a13a14f24d7 (diff) | |
download | perl-3ea285d10994f16a1808764be228780ee879570d.tar.gz |
Remove an unnecessary goto
Message-ID: <20060503055430.GA4922@petdance.com>
p4raw-id: //depot/perl@28079
Diffstat (limited to 'op.c')
-rw-r--r-- | op.c | 17 |
1 files changed, 8 insertions, 9 deletions
@@ -1152,15 +1152,14 @@ Perl_mod(pTHX_ OP *o, I32 type) CV *cv; OP *okid; - if (kid->op_type == OP_PUSHMARK) - goto skip_kids; - if (kid->op_type != OP_NULL || kid->op_targ != OP_LIST) - Perl_croak(aTHX_ - "panic: unexpected lvalue entersub " - "args: type/targ %ld:%"UVuf, - (long)kid->op_type, (UV)kid->op_targ); - kid = kLISTOP->op_first; - skip_kids: + if (kid->op_type != OP_PUSHMARK) { + if (kid->op_type != OP_NULL || kid->op_targ != OP_LIST) + Perl_croak(aTHX_ + "panic: unexpected lvalue entersub " + "args: type/targ %ld:%"UVuf, + (long)kid->op_type, (UV)kid->op_targ); + kid = kLISTOP->op_first; + } while (kid->op_sibling) kid = kid->op_sibling; if (!(kid->op_type == OP_NULL && kid->op_targ == OP_RV2CV)) { |