tree-ssa-propagate.c (set_rhs): Fix typo.
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 27 Nov 2007 01:03:54 +0000 (01:03 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 27 Nov 2007 01:03:54 +0000 (01:03 +0000)
* tree-ssa-propagate.c (set_rhs) <GIMPLE_MODIFY_STMT>: Fix typo.

From-SVN: r130459

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

index dbc652fc824eba44b9b50f85c18c237f69d345b7..8099c362543e3779957ef126bfd9a3c40f5ddadd 100644 (file)
@@ -1,3 +1,7 @@
+2007-11-26  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * tree-ssa-propagate.c (set_rhs) <GIMPLE_MODIFY_STMT>: Fix typo.
+
 2007-11-26  Michael Meissner  <michael.meissner@amd.com>
 
        PR target/34077
index 17eec7421387ec3f819bd7a17ef187c9d91b3fda..98847fb377a05577c7c7c37c5334fdff59fcb9a6 100644 (file)
@@ -710,12 +710,9 @@ set_rhs (tree *stmt_p, tree expr)
     case GIMPLE_MODIFY_STMT:
       op = GIMPLE_STMT_OPERAND (stmt, 1);
       if (TREE_CODE (op) == WITH_SIZE_EXPR)
-       {
-         stmt = op;
-          TREE_OPERAND (stmt, 1) = expr;
-       }
+       TREE_OPERAND (op, 0) = expr;
       else
-        GIMPLE_STMT_OPERAND (stmt, 1) = expr;
+       GIMPLE_STMT_OPERAND (stmt, 1) = expr;
       break;
 
     case COND_EXPR: