diff options
author | Richard Biener <rguenther@suse.de> | 2015-11-06 13:47:17 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2015-11-06 13:47:17 +0000 |
commit | f1aa4bb328a5e69e93f33d1a9f3cb8969ab4bbd8 (patch) | |
tree | eae97facc2a07ec7afef4ba35a7db7ec32ef179d | |
parent | ff56974436c9c8f994c9c80040ca026bde0965ee (diff) | |
download | gcc-f1aa4bb328a5e69e93f33d1a9f3cb8969ab4bbd8.zip gcc-f1aa4bb328a5e69e93f33d1a9f3cb8969ab4bbd8.tar.gz gcc-f1aa4bb328a5e69e93f33d1a9f3cb8969ab4bbd8.tar.bz2 |
alloc-pool.h (object_allocator::allocate): Default-initialize object.
2015-11-06 Richard Biener <rguenther@suse.de>
* alloc-pool.h (object_allocator::allocate): Default-initialize
object.
From-SVN: r229851
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/alloc-pool.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f83d760..6b499dd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2015-11-06 Richard Biener <rguenther@suse.de> + * alloc-pool.h (object_allocator::allocate): Default-initialize + object. + +2015-11-06 Richard Biener <rguenther@suse.de> + * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor. * lra.c (init_reg_info): Truncate copy_vec instead of re-allocating a new one and leaking the old. diff --git a/gcc/alloc-pool.h b/gcc/alloc-pool.h index 0dc05cd..bf9b0eb 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 |