diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-09-18 07:31:30 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-09-18 07:31:30 +0000 |
commit | 7298dc8b4fdc5b63bd6a66535432f20befa15fbc (patch) | |
tree | fe05dda72592a1cc1bfa37384e18d975a9caf42f /gcc/tree-into-ssa.c | |
parent | a6526ba073e55bf93701fb10ca116114b0cac79b (diff) | |
download | gcc-7298dc8b4fdc5b63bd6a66535432f20befa15fbc.tar.gz |
* tree-into-ssa.c (rewrite_ssa_into_ssa): Expect ssa_name to return
NULL.
* tree-ssa-alias.c (init_alias_info): Likewise.
* tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
(verify_ssa): Likewise.
* tree-ssanames.c (make_ssa_name): Clear out ssa_names arrays.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87698 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-into-ssa.c')
-rw-r--r-- | gcc/tree-into-ssa.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/tree-into-ssa.c b/gcc/tree-into-ssa.c index 5a49d7f7d09..e71eb4745aa 100644 --- a/gcc/tree-into-ssa.c +++ b/gcc/tree-into-ssa.c @@ -1623,7 +1623,8 @@ rewrite_ssa_into_ssa (void) sbitmap_free (mark_def_sites_global_data.kills); for (i = 1; i < num_ssa_names; i++) - set_current_def (ssa_name (i), NULL_TREE); + if (ssa_name (i)) + set_current_def (ssa_name (i), NULL_TREE); /* Insert PHI nodes at dominance frontiers of definition blocks. */ insert_phi_nodes (dfs, to_rename); @@ -1679,7 +1680,7 @@ rewrite_ssa_into_ssa (void) for (i = 1; i < num_ssa_names; i++) { name = ssa_name (i); - if (!SSA_NAME_AUX (name)) + if (!name || !SSA_NAME_AUX (name)) continue; free (SSA_NAME_AUX (name)); |