https://gcc.gnu.org/g:19f630e6ae8da7159a8c82f337b699245f66e6a6
commit r15-1649-g19f630e6ae8da7159a8c82f337b699245f66e6a6 Author: Jørgen Kvalsvik <j...@lambda.is> Date: Mon Jun 24 21:55:46 2024 +0200 Use auto_vec for memory release on return Using auto_vec ensure this memory is cleaned up on function exit. gcc/ChangeLog: * tree-profile.cc (find_conditions): Use auto_vec. Diff: --- gcc/tree-profile.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/tree-profile.cc b/gcc/tree-profile.cc index e4bb689cef5..8c9945847ca 100644 --- a/gcc/tree-profile.cc +++ b/gcc/tree-profile.cc @@ -876,7 +876,7 @@ find_conditions (struct function *fn) make_top_index (fnblocks, ctx.B1, ctx.top_index); /* Bin the Boolean expressions so that exprs[id] -> [x1, x2, ...]. */ - hash_map<int_hash<unsigned, 0>, vec<basic_block>> exprs; + hash_map<int_hash<unsigned, 0>, auto_vec<basic_block, 8>> exprs; for (basic_block b : fnblocks) { const unsigned uid = condition_uid (fn, b);