summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-copy.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2009-03-28 16:02:18 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2009-03-28 16:02:18 +0000
commitfbb789d49a45ad77c8af271a673f305401f2b134 (patch)
tree276e86bab77f77da3d3fdc988f400ef3be07bd79 /gcc/tree-ssa-copy.c
parentbc6600ab2aeff09a928a28d2f74288ffcb5ad839 (diff)
downloadgcc-fbb789d49a45ad77c8af271a673f305401f2b134.tar.gz
tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave the PHIs value undefined.
2009-03-28 Richard Guenther <rguenther@suse.de> * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave the PHIs value undefined. From-SVN: r145193
Diffstat (limited to 'gcc/tree-ssa-copy.c')
-rw-r--r--gcc/tree-ssa-copy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-copy.c b/gcc/tree-ssa-copy.c
index 8f060c2b5a2..5b3616394bb 100644
--- a/gcc/tree-ssa-copy.c
+++ b/gcc/tree-ssa-copy.c
@@ -892,7 +892,7 @@ copy_prop_visit_phi_node (gimple phi)
memory reference of all the other arguments. */
if (phi_val.value == NULL_TREE)
{
- phi_val.value = arg_val->value;
+ phi_val.value = arg_val->value ? arg_val->value : arg;
continue;
}