aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-ccp.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2004-11-04 22:07:39 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2004-11-04 22:07:39 +0000
commit65f4323d84b08d9d0ff450d6e6432abf0a4fa3fb (patch)
tree30f1b96da58dd9b0620f5c8de78c367da5fc1076 /gcc/tree-ssa-ccp.c
parentd48b4987af16e1aa3fce96eccb867ed31b1c74dc (diff)
downloadgcc-65f4323d84b08d9d0ff450d6e6432abf0a4fa3fb.zip
gcc-65f4323d84b08d9d0ff450d6e6432abf0a4fa3fb.tar.gz
gcc-65f4323d84b08d9d0ff450d6e6432abf0a4fa3fb.tar.bz2
tree-cfg.c (find_taken_edge): Reject VAL begin NULL.
* tree-cfg.c (find_taken_edge): Reject VAL begin NULL. * tree-ssa-ccp.c (visit_cond_stmt): Don't call find_taken_edge with VAL being NULL. From-SVN: r90083
Diffstat (limited to 'gcc/tree-ssa-ccp.c')
-rw-r--r--gcc/tree-ssa-ccp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-ccp.c b/gcc/tree-ssa-ccp.c
index b97424f..4209480 100644
--- a/gcc/tree-ssa-ccp.c
+++ b/gcc/tree-ssa-ccp.c
@@ -1123,7 +1123,7 @@ visit_cond_stmt (tree stmt, edge *taken_edge_p)
to the worklist. If no single edge can be determined statically,
return SSA_PROP_VARYING to feed all the outgoing edges to the
propagation engine. */
- *taken_edge_p = find_taken_edge (block, val.const_val);
+ *taken_edge_p = val.const_val ? find_taken_edge (block, val.const_val) : 0;
if (*taken_edge_p)
return SSA_PROP_INTERESTING;
else