From: Richard Biener Date: Fri, 6 Nov 2015 13:47:17 +0000 (+0000) Subject: alloc-pool.h (object_allocator::allocate): Default-initialize object. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f1aa4bb328a5e69e93f33d1a9f3cb8969ab4bbd8;p=gcc.git alloc-pool.h (object_allocator::allocate): Default-initialize object. 2015-11-06 Richard Biener * alloc-pool.h (object_allocator::allocate): Default-initialize object. From-SVN: r229851 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f83d760354e..6b499dd68b5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-11-06 Richard Biener + + * alloc-pool.h (object_allocator::allocate): Default-initialize + object. + 2015-11-06 Richard Biener * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor. diff --git a/gcc/alloc-pool.h b/gcc/alloc-pool.h index 0dc05cdb719..bf9b0ebd6ee 100644 --- a/gcc/alloc-pool.h +++ b/gcc/alloc-pool.h @@ -480,7 +480,7 @@ public: inline T * allocate () ATTRIBUTE_MALLOC { - return ::new (m_allocator.allocate ()) T (); + return ::new (m_allocator.allocate ()) T; } inline void