Branch: refs/heads/blead
Home: https://github.com/Perl/perl5
Commit: 7c8d1922a479a48c7240721c439eec06e5296616
https://github.com/Perl/perl5/commit/7c8d1922a479a48c7240721c439eec06e5296616
Author: Richard Leach <[email protected]>
Date: 2025-09-25 (Thu, 25 Sep 2025)
Changed paths:
M ext/B/t/optree_for.t
M ext/B/t/optree_samples.t
M lib/B/Deparse.pm
M op.c
Log Message:
-----------
Perl_scalarvoid: turn OP_STUB into OP_NULL
An OP_STUB in void context is functionally identical to an OP_NULL.
It's straightforward and safe to transform an OP_STUB into an OP_NULL
by adding an extra `case` within `Perl_scalarvoid`. In doing so:
* The redundant OPs are more likely to be omitted from the op_next chain.
* The OP tree is more consistent with `assert` expectations in `Perl_rpeep`.
(The programs in GH #17228 no longer trigger assertions.)
To unsubscribe from these emails, change your notification settings at
https://github.com/Perl/perl5/settings/notifications