From: Jørgen Kvalsvik Date: Mon, 24 Jun 2024 19:55:46 +0000 (+0200) Subject: Use auto_vec for memory release on return X-Git-Tag: basepoints/gcc-16~7904 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19f630e6ae8da7159a8c82f337b699245f66e6a6;p=thirdparty%2Fgcc.git 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 --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, vec> exprs; + hash_map, auto_vec> exprs; for (basic_block b : fnblocks) { const unsigned uid = condition_uid (fn, b);