]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2015-11-06 Richard Biener <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 6 Nov 2015 13:47:17 +0000 (13:47 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 6 Nov 2015 13:47:17 +0000 (13:47 +0000)
* alloc-pool.h (object_allocator::allocate): Default-initialize
object.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@229851 138bc75d-0d04-0410-961f-82ee72b054a4

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