summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-07-07 23:11:23 -0700
committerFather Chrysostomos <sprout@cpan.org>2012-09-15 22:45:00 -0700
commitb0305fa36f2ab4eebf4c0efdf7cfb2a4c20de12d (patch)
treeb57eb905ab02be808ee0bee7635c7613cdb8deb3 /op.c
parenta56613a9661d884386f51a76be7799ff26da6752 (diff)
downloadperl-b0305fa36f2ab4eebf4c0efdf7cfb2a4c20de12d.tar.gz
op.c:newMYSUB: inline var used only once
as of the previous commit
Diffstat (limited to 'op.c')
-rw-r--r--op.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/op.c b/op.c
index 0272f3342c..705374bac3 100644
--- a/op.c
+++ b/op.c
@@ -6871,7 +6871,6 @@ Perl_newMYSUB(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, OP *block)
register CV *cv = NULL;
register CV *compcv = PL_compcv;
SV *const_sv;
- const bool ec = PL_parser && PL_parser->error_count;
PADNAME *name;
PERL_ARGS_ASSERT_NEWMYSUB;
@@ -6904,7 +6903,7 @@ Perl_newMYSUB(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, OP *block)
SAVEFREEOP(attrs);
}
- if (ec) {
+ if (PL_parser && PL_parser->error_count) {
op_free(block);
goto done;
}