summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErick Ochoa <erick.ochoa@theobroma-systems.com>2020-12-02 13:36:10 +0100
committerErick Ochoa <erick.ochoa@theobroma-systems.com>2020-12-02 13:36:10 +0100
commita48d3dd1894dba358e9bac8c7b02aea3a86bea39 (patch)
tree483ebac4f7881bca47b19fe5de27006db3316ed2
parentc377f0f2313fd933e790ee4a4574e910b19d260f (diff)
std::vector -> vec
-rw-r--r--gcc/ipa-type-escape-analysis.c8
-rw-r--r--gcc/ipa-type-escape-analysis.h1
2 files changed, 3 insertions, 6 deletions
diff --git a/gcc/ipa-type-escape-analysis.c b/gcc/ipa-type-escape-analysis.c
index e37d30c91f0..5e693ad494a 100644
--- a/gcc/ipa-type-escape-analysis.c
+++ b/gcc/ipa-type-escape-analysis.c
@@ -3659,7 +3659,7 @@ fix_escaping_types_in_set (tpartitions_t &types)
type_incomplete_equality structuralEquality;
do
{
- std::vector<tree> fixes;
+ vec<tree> fixes2 = vNULL;
fixed_point_reached = true;
for (std::set<tree>::const_iterator i = types.escaping.begin (),
e = types.escaping.end ();
@@ -3685,13 +3685,11 @@ fix_escaping_types_in_set (tpartitions_t &types)
// Add incomplete to escaping
// delete incomplete from non_escaping
// We shouldn't do that inside our iteration loop.
- fixes.push_back (type_non);
+ fixes2.safe_push (type_non);
}
}
- for (std::vector<tree>::const_iterator i = fixes.begin (),
- e = fixes.end ();
- i != e; ++i)
+ for (auto i = fixes2.begin (), e = fixes2.end (); i != e; ++i)
{
tree escaping_type = *i;
types.escaping.insert (escaping_type);
diff --git a/gcc/ipa-type-escape-analysis.h b/gcc/ipa-type-escape-analysis.h
index 4fd7e2a58c5..92458e744a3 100644
--- a/gcc/ipa-type-escape-analysis.h
+++ b/gcc/ipa-type-escape-analysis.h
@@ -489,7 +489,6 @@ private:
* call to collect.
*/
hash_map<tree, bool> ptr2;
- //std::map<tree, bool> ptr;
/* The type partition set that will hold partitions for
* points to record or does not point to record.