aboutsummaryrefslogtreecommitdiff
path: root/gcc/vec.h
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@google.com>2012-09-04 11:16:51 -0400
committerDiego Novillo <dnovillo@gcc.gnu.org>2012-09-04 11:16:51 -0400
commitdce6e8ada7b01213cd6f94edde84370041ece98e (patch)
treeff4fae09ff6f1d3c767111d5aa752e77d2d68445 /gcc/vec.h
parent0e9f719a987c57d25fb323d70c25e9031fbbe334 (diff)
downloadgcc-dce6e8ada7b01213cd6f94edde84370041ece98e.zip
gcc-dce6e8ada7b01213cd6f94edde84370041ece98e.tar.gz
gcc-dce6e8ada7b01213cd6f94edde84370041ece98e.tar.bz2
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
Diffstat (limited to 'gcc/vec.h')
-rw-r--r--gcc/vec.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/vec.h b/gcc/vec.h
index 74a85c7..ac426e9 100644
--- a/gcc/vec.h
+++ b/gcc/vec.h
@@ -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);
}