This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
remove invalid ASSUME from MULTIDEREF code
authorDavid Mitchell <davem@iabyn.com>
Tue, 10 Feb 2015 15:03:54 +0000 (15:03 +0000)
committerDavid Mitchell <davem@iabyn.com>
Tue, 10 Feb 2015 15:08:54 +0000 (15:08 +0000)
commit20c46147ebf1319e284a39fb6afe6a572f067e47
tree769f42a7e61f2c488951ab647f41a0b288accd12
parentb3725d49f914ef2bed63d7eb92a72ef6e886b489
remove invalid ASSUME from MULTIDEREF code

RT #123735

The code that examines ops looking for OP_MULTIDEREF candidates,
makes assertions about what flags it think can be present on ops;
the idea being that if those assumptions change, the optimisation
code may need changing too.

However, the following syntax-errored code

    print
    my(r)

can trigger the assertion about PARENS not being set on an OP_GV.
So don't assert that.
op.c