aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-phiopt.c
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2004-09-24 18:16:11 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2004-09-24 11:16:11 -0700
commit84f7a28c9b3fe007dbbdd332643cb6858997ba8f (patch)
tree59fd370949d9651a684e75d418d9278f2730b049 /gcc/tree-ssa-phiopt.c
parent532c67ca934a0926455c5a1f745233a4ee3dc2fb (diff)
downloadgcc-84f7a28c9b3fe007dbbdd332643cb6858997ba8f.zip
gcc-84f7a28c9b3fe007dbbdd332643cb6858997ba8f.tar.gz
gcc-84f7a28c9b3fe007dbbdd332643cb6858997ba8f.tar.bz2
tree-ssa-phiopt.c (conditional_replacement): Use the correct type with the copy of the conditional.
2004-09-24 Andrew Pinski <pinskia@physics.uc.edu> * tree-ssa-phiopt.c (conditional_replacement): Use the correct type with the copy of the conditional. From-SVN: r88065
Diffstat (limited to 'gcc/tree-ssa-phiopt.c')
-rw-r--r--gcc/tree-ssa-phiopt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-ssa-phiopt.c b/gcc/tree-ssa-phiopt.c
index fe0fddf..e61e736 100644
--- a/gcc/tree-ssa-phiopt.c
+++ b/gcc/tree-ssa-phiopt.c
@@ -344,11 +344,11 @@ conditional_replacement (basic_block bb, tree phi, tree arg0, tree arg1)
if (!COMPARISON_CLASS_P (old_result))
return false;
- new1 = build (TREE_CODE (old_result), TREE_TYPE (result),
+ new1 = build (TREE_CODE (old_result), TREE_TYPE (old_result),
TREE_OPERAND (old_result, 0),
TREE_OPERAND (old_result, 1));
- new1 = build (MODIFY_EXPR, TREE_TYPE (result), new_var, new1);
+ new1 = build (MODIFY_EXPR, TREE_TYPE (old_result), new_var, new1);
bsi_insert_after (&bsi, new1, BSI_NEW_STMT);
}