diff options
author | David Edelsohn <edelsohn@gnu.org> | 2003-09-11 20:47:13 +0000 |
---|---|---|
committer | David Edelsohn <dje@gcc.gnu.org> | 2003-09-11 16:47:13 -0400 |
commit | b44a178ae83acaeb2e6a7ee51cfde543922f6b99 (patch) | |
tree | 5e3fdba96b9fc1b4859cb5dcbb1989d053e598f4 | |
parent | dfb03c453c1606127fd01e8ebc6217a69b54139c (diff) | |
download | gcc-b44a178ae83acaeb2e6a7ee51cfde543922f6b99.zip gcc-b44a178ae83acaeb2e6a7ee51cfde543922f6b99.tar.gz gcc-b44a178ae83acaeb2e6a7ee51cfde543922f6b99.tar.bz2 |
* decl2.c (var_finalized_p): Swap arms of conditional.
From-SVN: r71319
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/decl2.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 2f3461a..f9a7339c 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2003-09-11 David Edelsohn <edelsohn@gnu.org> + + * decl2.c (var_finalized_p): Swap arms of conditional. + 2003-09-10 Nathan Sidwell <nathan@codesourcery.com> PR c++/11788 diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index 7c3620d7..6f30cf9 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. |