From d804d49087857633caca2730e5a9dab9a059b9fb Mon Sep 17 00:00:00 2001 From: Diego Novillo Date: Sat, 18 Sep 2004 13:53:31 +0000 Subject: [PATCH] * tree-ssa-alias.c (dump_alias_info): Ignore NULL SSA_NAMEs. From-SVN: r87702 --- gcc/ChangeLog | 4 ++++ gcc/tree-ssa-alias.c | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a69ec4bb816..5981fed67f9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2004-09-18 Diego Novillo + + * tree-ssa-alias.c (dump_alias_info): Ignore NULL SSA_NAMEs. + 2004-09-18 Jan Hubicka * tree-into-ssa.c (rewrite_ssa_into_ssa): Expect ssa_name to return diff --git a/gcc/tree-ssa-alias.c b/gcc/tree-ssa-alias.c index ff1dd7726aa..34d9bb04212 100644 --- a/gcc/tree-ssa-alias.c +++ b/gcc/tree-ssa-alias.c @@ -2223,7 +2223,12 @@ dump_alias_info (FILE *file) for (i = 1; i < num_ssa_names; i++) { tree ptr = ssa_name (i); - struct ptr_info_def *pi = SSA_NAME_PTR_INFO (ptr); + struct ptr_info_def *pi; + + if (ptr == NULL_TREE) + continue; + + pi = SSA_NAME_PTR_INFO (ptr); if (!SSA_NAME_IN_FREE_LIST (ptr) && pi && pi->name_mem_tag) -- 2.30.2