Fix recent small bug

From-SVN: r31671
This commit is contained in:
Mike Stump 2000-01-28 19:44:45 +00:00
parent 52bea68432
commit 74dc0d8cab

View file

@ -3938,7 +3938,9 @@ pushdecl (x)
if (oldlocal)
{
tree d = oldlocal;
while (oldlocal && DECL_DEAD_FOR_LOCAL (oldlocal))
while (oldlocal
&& TREE_CODE (oldlocal) == VAR_DECL
&& DECL_DEAD_FOR_LOCAL (oldlocal))
{
oldlocal = DECL_SHADOWED_FOR_VAR (oldlocal);
}