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
This commit is contained in:
Richard Biener 2015-11-06 13:47:17 +00:00 committed by Richard Biener
parent ff56974436
commit f1aa4bb328
2 changed files with 6 additions and 1 deletions

View 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.

View 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