summaryrefslogtreecommitdiff
path: root/gcc/ipa-type-escape-analysis.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ipa-type-escape-analysis.c')
-rw-r--r--gcc/ipa-type-escape-analysis.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/ipa-type-escape-analysis.c b/gcc/ipa-type-escape-analysis.c
index 30872e3cfe6..0c7342e3664 100644
--- a/gcc/ipa-type-escape-analysis.c
+++ b/gcc/ipa-type-escape-analysis.c
@@ -675,7 +675,7 @@ void
type_walker::walk (tree t)
{
gcc_assert (t);
- this->tset.clear ();
+ this->tset2.empty ();
this->_walk (t);
}
@@ -701,11 +701,11 @@ type_walker::_walk (tree type)
// of trees and therefore we need a way to
// avoid loops in this graph.
// Imrpove: Outline finding if it is recursive?
- const bool is_recursing = tset.find (type) != tset.end ();
+ const bool is_recursing = tset2.contains (type);
if (is_recursing)
return;
- tset.insert (type);
+ tset2.add (type);
const enum tree_code code = TREE_CODE (type);
switch (code)
{
@@ -772,7 +772,7 @@ type_walker::_walk (tree type)
}
break;
}
- tset.erase (type);
+ tset2.remove (type);
}
// This is used to walk over subtrees.