(default_conversion): Don't replace iterator with its initial value.

From-SVN: r4452
This commit is contained in:
Richard Stallman 1993-05-14 17:14:17 +00:00
parent 00c5c72e46
commit ec193993f9
1 changed files with 2 additions and 0 deletions

View File

@ -920,6 +920,8 @@ default_conversion (exp)
else if (optimize
&& TREE_CODE (exp) == VAR_DECL
&& TREE_READONLY (exp)
/* But not for iterators! */
&& !ITERATOR_P (exp)
&& DECL_MODE (exp) != BLKmode)
{
exp = decl_constant_value (exp);