Commit dce6e8ad by Diego Novillo Committed by Diego Novillo

re PR bootstrap/54479 (Bootstrap with release-checking broken)

	PR bootstrap/54479
	* vec.h (vec_t::copy): Add cast in call to reserve_exact.

From-SVN: r190937
parent 0e9f719a
2012-09-04 Diego Novillo <dnovillo@google.com>
PR bootstrap/54479
* vec.h (vec_t::copy): Add cast in call to reserve_exact.
2012-09-04 Richard Guenther <rguenther@suse.de>
* tree-ssa-pre.c (add_to_exp_gen): Adjust.
......
......@@ -699,7 +699,8 @@ vec_t<T>::copy (ALONE_MEM_STAT_DECL)
if (len)
{
new_vec = vec_t<T>::reserve_exact<A> (NULL, len PASS_MEM_STAT);
new_vec = vec_t<T>::reserve_exact<A> (static_cast<vec_t<T> *> (NULL),
len PASS_MEM_STAT);
new_vec->embedded_init (len, len);
memcpy (new_vec->address (), vec_, sizeof (T) * len);
}
......
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