OSDN Git Service

PR middle-end/25962
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 4 May 2006 12:42:55 +0000 (12:42 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 4 May 2006 12:42:55 +0000 (12:42 +0000)
* cgraphunit.c (verify_cgraph_node): Fix cgraph_hash testing.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113522 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/cgraphunit.c

index b74f0cb..5f29c01 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 030f868..4a7f90e 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;
     }