summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-propagate.c
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2007-11-27 01:03:54 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2007-11-27 01:03:54 +0000
commit4b54d44c69b57451f860f76486c39084e0cf598c (patch)
treea5b5a18654a47d4b8683a4ed57a073ab8df37e26 /gcc/tree-ssa-propagate.c
parenta6808d2420056cac4d28d28dd3e45a0fe4e651df (diff)
downloadgcc-4b54d44c69b57451f860f76486c39084e0cf598c.tar.gz
* tree-ssa-propagate.c (set_rhs) <GIMPLE_MODIFY_STMT>: Fix typo.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130459 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-propagate.c')
-rw-r--r--gcc/tree-ssa-propagate.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/tree-ssa-propagate.c b/gcc/tree-ssa-propagate.c
index 17eec742138..98847fb377a 100644
--- a/gcc/tree-ssa-propagate.c
+++ b/gcc/tree-ssa-propagate.c
@@ -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: