summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2013-08-08 14:17:08 -0700
committerFather Chrysostomos <sprout@cpan.org>2013-08-09 19:28:34 -0700
commitcb2dcfb25ec8a3cf487a54f645efffed55b50153 (patch)
tree72760989f8cd2bfb75db07b42c87b5f2cd236f50 /op.c
parent9e0ea7f366b3255bc81b5cd80758673bf421604c (diff)
downloadperl-cb2dcfb25ec8a3cf487a54f645efffed55b50153.tar.gz
op.c:ck_eval: remove redundant null check
op_first is never null when OPf_KIDS is set.
Diffstat (limited to 'op.c')
-rw-r--r--op.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/op.c b/op.c
index 1d72f27394..f6d73a3073 100644
--- a/op.c
+++ b/op.c
@@ -8408,12 +8408,9 @@ Perl_ck_eval(pTHX_ OP *o)
PL_hints |= HINT_BLOCK_SCOPE;
if (o->op_flags & OPf_KIDS) {
SVOP * const kid = (SVOP*)cUNOPo->op_first;
+ assert(kid);
- if (!kid) {
- o->op_flags &= ~OPf_KIDS;
- op_null(o);
- }
- else if (kid->op_type == OP_LINESEQ || kid->op_type == OP_STUB) {
+ if (kid->op_type == OP_LINESEQ || kid->op_type == OP_STUB) {
LOGOP *enter;
#ifdef PERL_MAD
OP* const oldo = o;