Include name of global scalars in unitialized value warnings when the peephole optimi...
authorGerard Goossen <gerard@ggoossen.net>
Tue, 9 Aug 2011 18:52:34 +0000 (20:52 +0200)
committerFather Chrysostomos <sprout@cpan.org>
Sat, 3 Sep 2011 18:27:49 +0000 (11:27 -0700)
commitc475d5dcffe516f06f78424f9515dc90cebe2577
tree1ff5b2878322c70a984977f4b8c8b85b39201c3d
parent33d4ef81b59b60428ca88cbc75a473f65b8e78a4
Include name of global scalars in unitialized value warnings when the peephole optimiser isn't applied.

When the peephole optimiser isn't applied warnings about uninitialised
values from global scalars don't include the name of variable, because
the OP_RV2SV + OP_GV isn't converted to OP_GVSV. This patch fixes that
by extracting the name of the variable from the OP_RV2SV + OP_GV.
sv.c