diff options
author | Jørgen Kvalsvik <j@lambda.is> | 2024-06-24 21:55:46 +0200 |
---|---|---|
committer | Jørgen Kvalsvik <j@lambda.is> | 2024-06-26 12:18:47 +0200 |
commit | 19f630e6ae8da7159a8c82f337b699245f66e6a6 (patch) | |
tree | 0405c8f9e314eafa658c2dc61e47927b074e5d3f /gcc | |
parent | ad20ad7dddcb052429346ae5f94b4a603925084a (diff) | |
download | gcc-19f630e6ae8da7159a8c82f337b699245f66e6a6.zip gcc-19f630e6ae8da7159a8c82f337b699245f66e6a6.tar.gz gcc-19f630e6ae8da7159a8c82f337b699245f66e6a6.tar.bz2 |
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/tree-profile.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-profile.cc b/gcc/tree-profile.cc index e4bb689..8c99458 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); |