From f1aa4bb328a5e69e93f33d1a9f3cb8969ab4bbd8 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Fri, 6 Nov 2015 13:47:17 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/alloc-pool.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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 -- 2.30.2