From 69fb12844d92f4a7a3eb821cd2742fc4a4bcc5ee Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Thu, 4 May 2006 14:42:55 +0200 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/cgraphunit.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b74f0cb45fb..5f29c015cd0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2006-05-04 Jan Hubicka + + PR middle-end/25962 + * cgraphunit.c (verify_cgraph_node): Fix cgraph_hash testing. + 2006-05-04 Bernd Schmidt * config/bfin/predicates.md (const01_rtx): Tell generator programs diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 030f8681792..4a7f90e5e7f 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -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; } -- 2.30.2