arybase.xs: Always check the op type in ck_*
authorFather Chrysostomos <sprout@cpan.org>
Thu, 27 Oct 2011 01:02:58 +0000 (18:02 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Thu, 27 Oct 2011 03:16:57 +0000 (20:16 -0700)
commit02523b6e704bc628e99f1b8739226559c7181e42
tree67fdd6bbc6e663a2f2ed4550a288d4c7a46c81a7
parent546dd830d08e285bd00ae6191388f21e8ee3ab44
arybase.xs: Always check the op type in ck_*

Sometimes the previous check function will have replaced the op
with one of a different type.  In that case, the rest of arybase’s
check function does not apply and can even cause a crash for ops
with no children (e.g., $x=wait is optimised down to a simple wait
op with no children and with op_targ pointing to $x, if it is
lexical).
ext/arybase/arybase.xs