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 f83d760..6b499dd 100644 (file)
@@ -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.
index 0dc05cd..bf9b0eb 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