re PR middle-end/25962 (Pointer (null) check after the use in cgraph.c)

PR middle-end/25962
	* cgraphunit.c (verify_cgraph_node): Fix cgraph_hash testing.

From-SVN: r113522
This commit is contained in:
Jan Hubicka 2006-05-04 14:42:55 +02:00 committed by Jan Hubicka
parent 42da70b76e
commit 69fb12844d
2 changed files with 7 additions and 2 deletions

View 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

View 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;
}