(default_conversion): Don't replace iterator with its initial value.
From-SVN: r4452
This commit is contained in:
parent
00c5c72e46
commit
ec193993f9
@ -920,6 +920,8 @@ default_conversion (exp)
|
|||||||
else if (optimize
|
else if (optimize
|
||||||
&& TREE_CODE (exp) == VAR_DECL
|
&& TREE_CODE (exp) == VAR_DECL
|
||||||
&& TREE_READONLY (exp)
|
&& TREE_READONLY (exp)
|
||||||
|
/* But not for iterators! */
|
||||||
|
&& !ITERATOR_P (exp)
|
||||||
&& DECL_MODE (exp) != BLKmode)
|
&& DECL_MODE (exp) != BLKmode)
|
||||||
{
|
{
|
||||||
exp = decl_constant_value (exp);
|
exp = decl_constant_value (exp);
|
||||||
|
Loading…
Reference in New Issue
Block a user