Annotate vec::copy better for mem stats

* vec.h (vec<T, va_heap, vl_ptr>::copy): Pass mem stat info.
This commit is contained in:
Jan Hubicka 2020-10-29 18:03:29 +01:00
parent 0da3e7668c
commit 2ca6de338d

View File

@ -1731,7 +1731,7 @@ vec<T, va_heap, vl_ptr>::copy (ALONE_MEM_STAT_DECL) const
{
vec<T, va_heap, vl_ptr> new_vec = vNULL;
if (length ())
new_vec.m_vec = m_vec->copy ();
new_vec.m_vec = m_vec->copy (ALONE_PASS_MEM_STAT);
return new_vec;
}