From: Diego Novillo Date: Sat, 18 Sep 2004 13:53:31 +0000 (+0000) Subject: * tree-ssa-alias.c (dump_alias_info): Ignore NULL SSA_NAMEs. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d804d49087857633caca2730e5a9dab9a059b9fb;p=gcc.git * tree-ssa-alias.c (dump_alias_info): Ignore NULL SSA_NAMEs. From-SVN: r87702 --- 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)