* tree-ssa-alias.c (dump_alias_info): Ignore NULL SSA_NAMEs.
authorDiego Novillo <dnovillo@redhat.com>
Sat, 18 Sep 2004 13:53:31 +0000 (13:53 +0000)
committerDiego Novillo <dnovillo@gcc.gnu.org>
Sat, 18 Sep 2004 13:53:31 +0000 (09:53 -0400)
From-SVN: r87702

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

index a69ec4bb8166cc76588360b4ecc7a747e1cf1fdd..5981fed67f9ff9180d10432d4ef8758471ae8738 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 ff1dd7726aada2501bddab216e3a2c034fca9ab7..34d9bb04212a36e6e7d9371d11c0731debabdcbb 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)