From b44a178ae83acaeb2e6a7ee51cfde543922f6b99 Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Thu, 11 Sep 2003 20:47:13 +0000 Subject: [PATCH] * decl2.c (var_finalized_p): Swap arms of conditional. From-SVN: r71319 --- gcc/cp/ChangeLog | 4 ++++ gcc/cp/decl2.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 2f3461a254c..f9a7339c03f 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2003-09-11 David Edelsohn + + * decl2.c (var_finalized_p): Swap arms of conditional. + 2003-09-10 Nathan Sidwell PR c++/11788 diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index 7c3620d7d44..6f30cf9b35b 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -1627,9 +1627,9 @@ static bool var_finalized_p (tree var) { if (flag_unit_at_a_time) - return TREE_ASM_WRITTEN (var); - else return cgraph_varpool_node (var)->finalized; + else + return TREE_ASM_WRITTEN (var); } /* If necessary, write out the vtables for the dynamic class CTYPE. -- 2.30.2