re PR tree-optimization/20936 (tree check: accessed operand 2 of view_convert_expr...
authorKazu Hirata <kazu@cs.umass.edu>
Fri, 15 Apr 2005 14:06:07 +0000 (14:06 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Fri, 15 Apr 2005 14:06:07 +0000 (14:06 +0000)
PR tree-optimization/20936.
* tree-ssa-ccp.c (visit_assignment): Fix a typo.

From-SVN: r98183

gcc/ChangeLog
gcc/tree-ssa-ccp.c

index 11c66114a695f4d4ad0fc09ec1e1f441f0e4c9c3..879641d37953d64233ab630958a7e9479374d00c 100644 (file)
@@ -1,3 +1,8 @@
+2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
+
+       PR tree-optimization/20936.
+       * tree-ssa-ccp.c (visit_assignment): Fix a typo.
+
 2005-04-15  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
 
        * doc/invoke.texi: Fix typos.
index 443d8dca87982dee289d4398448361da4d5d0291..8b7ca40aa7eef2ca84dc9ca1fa3e8c9170b8af54 100644 (file)
@@ -1071,7 +1071,7 @@ visit_assignment (tree stmt, tree *output_p)
                               TREE_TYPE (TREE_OPERAND (orig_lhs, 0)),
                               val.value));
 
-       orig_lhs = TREE_OPERAND (orig_lhs, 1);
+       orig_lhs = TREE_OPERAND (orig_lhs, 0);
        if (w && is_gimple_min_invariant (w))
          val.value = w;
        else