Branch: refs/heads/blead Home: https://github.com/Perl/perl5 Commit: f8c57796889a55dbc338669517501dcae1eec73b https://github.com/Perl/perl5/commit/f8c57796889a55dbc338669517501dcae1eec73b Author: Richard Leach <richardle...@users.noreply.github.com> Date: 2023-08-27 (Sun, 27 Aug 2023)
Changed paths: M perlio.c Log Message: ----------- PerlIOScalar_pushed: move SvUPGRADE to where it might apply `newSVpvs("")` returns an SV of type `SVt_PV`, therefore there's no point in calling `SvUPGRADE(..., SVt_PV)` on it. The other nearby code paths _might_ set an SV that needs upgrading (I haven't looked into the logic), so the `SvUPGRADE` statement has been moved inside the relevant branch rather than being removed.