* tree-ssa-alias.c (dump_alias_info): Ignore NULL SSA_NAMEs.
authordnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 18 Sep 2004 13:53:31 +0000 (13:53 +0000)
committerdnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 18 Sep 2004 13:53:31 +0000 (13:53 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87702 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-ssa-alias.c

index a69ec4b..5981fed 100644 (file)
@@ -1,3 +1,7 @@
+2004-09-18  Diego Novillo  <dnovillo@redhat.com>
+
+       * tree-ssa-alias.c (dump_alias_info): Ignore NULL SSA_NAMEs.
+
 2004-09-18  Jan Hubicka  <jh@suse.cz>
 
        * tree-into-ssa.c (rewrite_ssa_into_ssa):  Expect ssa_name to return
index ff1dd77..34d9bb0 100644 (file)
@@ -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)