]> git.ipfire.org Git - thirdparty/gcc.git/commit
Use move-aware auto_vec in map
authorJørgen Kvalsvik <j@lambda.is>
Fri, 28 Jun 2024 06:35:31 +0000 (08:35 +0200)
committerJørgen Kvalsvik <j@lambda.is>
Fri, 28 Jun 2024 13:36:06 +0000 (15:36 +0200)
commit86451e10f6e3bad0c719a9e30f1d9dea36819025
tree441c042fe60331132e3def07a552c753917b591f
parentff6e8b7f09712bd7ddfcd2830b286421f23abef9
Use move-aware auto_vec in map

Using auto_vec rather than vec for means the vectors are release
automatically upon return, to stop the leak. The problem seems is that
auto_vec<T, N> is not really move-aware, only the <T, 0> specialization
is.

gcc/ChangeLog:

* tree-profile.cc (find_conditions): Use auto_vec without
embedded storage.
gcc/tree-profile.cc