summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-copy.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2009-03-28 16:02:18 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2009-03-28 16:02:18 +0000
commit59ce9604996753cc3bdaa022b99cc278f5d4838f (patch)
tree276e86bab77f77da3d3fdc988f400ef3be07bd79 /gcc/tree-ssa-copy.c
parent8876d8a8b8f21fdfa1450242307a3336747ee329 (diff)
downloadgcc-59ce9604996753cc3bdaa022b99cc278f5d4838f.tar.gz
2009-03-28 Richard Guenther <rguenther@suse.de>
* tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave the PHIs value undefined. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@145193 138bc75d-0d04-0410-961f-82ee72b054a4
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;
}