This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
op_free() remove redundant !kid test
authorDavid Mitchell <davem@iabyn.com>
Tue, 19 Mar 2019 11:15:21 +0000 (11:15 +0000)
committerDavid Mitchell <davem@iabyn.com>
Tue, 19 Mar 2019 11:26:35 +0000 (11:26 +0000)
commit44b0aff01ba282b14dc62a1137996136282bc17a
treed52cc7d6edf53ed867a65de61aa8736433d24bbd
parent170c919fc4986a85062e9292e4cfed24771d2224
op_free() remove redundant !kid test

and replace with an assert.

If an op has the OPf_KIDS flag, then cUNOPo->op_first must be non-null.
So testing for !kid doesn't do much, especially as on the previous line
we dereference it anyway.
op.c