]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
alloc-pool.h (object_allocator::allocate): Default-initialize object.
authorRichard Biener <rguenther@suse.de>
Fri, 6 Nov 2015 13:47:17 +0000 (13:47 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 6 Nov 2015 13:47:17 +0000 (13:47 +0000)
2015-11-06  Richard Biener  <rguenther@suse.de>

* alloc-pool.h (object_allocator::allocate): Default-initialize
object.

From-SVN: r229851

gcc/ChangeLog
gcc/alloc-pool.h

index f83d760354eb1869afdf7bbc367f18d461014342..6b499dd68b57dec7e8ad1a1e134a62659e4cafeb 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 0dc05cdb7196b13f8ff9eae54ccb03c414718091..bf9b0ebd6ee4a4f669f0be9785f65bc2cacd25a3 100644 (file)
@@ -480,7 +480,7 @@ public:
   inline T *
   allocate () ATTRIBUTE_MALLOC
   {
-    return ::new (m_allocator.allocate ()) T ();
+    return ::new (m_allocator.allocate ()) T;
   }
 
   inline void