From 19f630e6ae8da7159a8c82f337b699245f66e6a6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B8rgen=20Kvalsvik?= Date: Mon, 24 Jun 2024 21:55:46 +0200 Subject: [PATCH] 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. --- 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, vec> exprs; + hash_map, auto_vec> exprs; for (basic_block b : fnblocks) { const unsigned uid = condition_uid (fn, b); -- 2.47.2