Commit f1aa4bb3 by Richard Biener Committed by Richard Biener

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
parent ff569744
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.
......@@ -480,7 +480,7 @@ public:
inline T *
allocate () ATTRIBUTE_MALLOC
{
return ::new (m_allocator.allocate ()) T ();
return ::new (m_allocator.allocate ()) T;
}
inline void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment