PR tree-optimization/20936.
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 15 Apr 2005 14:06:07 +0000 (14:06 +0000)
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 15 Apr 2005 14:06:07 +0000 (14:06 +0000)
* tree-ssa-ccp.c (visit_assignment): Fix a typo.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98183 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 11c6611..879641d 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 443d8dc..8b7ca40 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