Commit ec193993 by Richard Stallman

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

From-SVN: r4452
parent 00c5c72e
...@@ -920,6 +920,8 @@ default_conversion (exp) ...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment