diff options
author | Jason Merrill <jason@redhat.com> | 2009-03-05 09:10:07 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2009-03-05 09:10:07 -0500 |
commit | 2588c9e970ebea8cd91d3ba9b38ccd909e063c30 (patch) | |
tree | 471c77be303fe10eedd997165d69dae2bf932fad /gcc/cp/cp-objcp-common.c | |
parent | ee0ee7e2c1fd52af141b14c0230dcf6cd50c2b35 (diff) | |
download | gcc-2588c9e970ebea8cd91d3ba9b38ccd909e063c30.tar.gz |
re PR c++/38908 (Unexplained "'<anonymous>' is used uninitialized in this function" warning in cc1plus -m64)
PR c++/38908
* class.c (is_really_empty_class): New fn.
* cp-tree.h: Declare it.
* cp-objcp-common.c (cp_expr_size): Use it.
From-SVN: r144643
Diffstat (limited to 'gcc/cp/cp-objcp-common.c')
-rw-r--r-- | gcc/cp/cp-objcp-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/cp-objcp-common.c b/gcc/cp/cp-objcp-common.c index 7d2e870bc80..fefafb1ac7e 100644 --- a/gcc/cp/cp-objcp-common.c +++ b/gcc/cp/cp-objcp-common.c @@ -101,7 +101,7 @@ cp_expr_size (const_tree exp) constructed, this is a valid transformation. */ || CP_AGGREGATE_TYPE_P (type)) /* This would be wrong for a type with virtual bases. */ - return (is_empty_class (type) + return (is_really_empty_class (type) ? size_zero_node : CLASSTYPE_SIZE_UNIT (type)); else |