re PR middle-end/25962 (Pointer (null) check after the use in cgraph.c)
authorJan Hubicka <jh@suse.cz>
Thu, 4 May 2006 12:42:55 +0000 (14:42 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 4 May 2006 12:42:55 +0000 (12:42 +0000)
PR middle-end/25962
* cgraphunit.c (verify_cgraph_node): Fix cgraph_hash testing.

From-SVN: r113522

gcc/ChangeLog
gcc/cgraphunit.c

index b74f0cb45fbf0b4552289a308a01a7cf62b02433..5f29c015cd0797c9898212b4c9f3bddeee72e7d9 100644 (file)
@@ -1,3 +1,8 @@
+2006-05-04  Jan Hubicka  <jh@suse.cz>
+
+       PR middle-end/25962
+       * cgraphunit.c (verify_cgraph_node): Fix cgraph_hash testing.
+
 2006-05-04  Bernd Schmidt  <bernd.schmidt@analog.com>
 
        * config/bfin/predicates.md (const01_rtx): Tell generator programs
index 030f8681792a01b544349d93a8e7a7f1845777fa..4a7f90e5e7f7cceb842ca4231c82b7669ba87f67 100644 (file)
@@ -731,9 +731,9 @@ verify_cgraph_node (struct cgraph_node *node)
        main_clone = main_clone->next_clone)
     if (main_clone == node)
       break;
-  if (!node)
+  if (!cgraph_node (node->decl))
     {
-      error ("node not found in DECL_ASSEMBLER_NAME hash");
+      error ("node not found in cgraph_hash");
       error_found = true;
     }