summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErick Ochoa <erick.ochoa@theobroma-systems.com>2020-12-02 13:42:09 +0100
committerErick Ochoa <erick.ochoa@theobroma-systems.com>2020-12-02 13:42:09 +0100
commitaf3a1b87f1cbbd289ffe3546ae4eb00a570521ce (patch)
treed9ef202b3c67034879c4bf9c12c5f61bd6a0eb4b
parenta48d3dd1894dba358e9bac8c7b02aea3a86bea39 (diff)
std::set<tree> -> hash_set<tree>
-rw-r--r--gcc/ipa-type-escape-analysis.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/ipa-type-escape-analysis.c b/gcc/ipa-type-escape-analysis.c
index 5e693ad494a..30872e3cfe6 100644
--- a/gcc/ipa-type-escape-analysis.c
+++ b/gcc/ipa-type-escape-analysis.c
@@ -1269,7 +1269,7 @@ void
gimple_walker::walk ()
{
_walk_globals ();
- std::set<tree> fndecls;
+ hash_set<tree> fndecls2;
cgraph_node *node = NULL;
FOR_EACH_FUNCTION_WITH_GIMPLE_BODY (node)
{
@@ -1277,7 +1277,7 @@ gimple_walker::walk ()
node->get_untransformed_body ();
tree decl = node->decl;
gcc_assert (decl);
- const bool already_in_set = fndecls.find (decl) != fndecls.end ();
+ const bool already_in_set = fndecls2.contains (decl);
// I think it is possible for different nodes to point to the same
// declaration.
if (already_in_set)
@@ -1287,7 +1287,7 @@ gimple_walker::walk ()
dump_function_to_file (node->decl, dump_file, TDF_NONE);
_walk_cnode (node);
- fndecls.insert (decl);
+ fndecls2.add (decl);
}
}