diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1995-05-24 15:47:11 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1995-05-24 15:47:11 -0400 |
commit | f7cb6357f76d59f4bb39ad22705b0b71c7252acd (patch) | |
tree | 3fd7f62c3f1ce64fa90ae6187c5a8dd8ac54f79a /gcc/cp/decl2.c | |
parent | 2507f3b50d4a0c0697e25c2eeed3a71d65586f1c (diff) | |
download | gcc-f7cb6357f76d59f4bb39ad22705b0b71c7252acd.zip gcc-f7cb6357f76d59f4bb39ad22705b0b71c7252acd.tar.gz gcc-f7cb6357f76d59f4bb39ad22705b0b71c7252acd.tar.bz2 |
(finish_anon_union): Check simple_cst_equal result against 0.
From-SVN: r9804
Diffstat (limited to 'gcc/cp/decl2.c')
-rw-r--r-- | gcc/cp/decl2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index 5bbc9c8..fb0940e 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -2258,7 +2258,8 @@ finish_anon_union (anon_union_decl) /* Only write out one anon union element--choose the one that can hold them all. */ if (main_decl == NULL_TREE - && simple_cst_equal (DECL_SIZE (decl), DECL_SIZE (anon_union_decl))) + && 1 == simple_cst_equal (DECL_SIZE (decl), + DECL_SIZE (anon_union_decl))) { main_decl = decl; } |