summaryrefslogtreecommitdiff
path: root/gold/gc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gold/gc.cc')
-rw-r--r--gold/gc.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gold/gc.cc b/gold/gc.cc
index 16bdb19931d..08a2bbac130 100644
--- a/gold/gc.cc
+++ b/gold/gc.cc
@@ -38,8 +38,8 @@ Garbage_collection::do_transitive_closure()
{
// Add elements from the work list to the referenced list
// one by one.
- Section_id entry = this->worklist().front();
- this->worklist().pop();
+ Section_id entry = this->worklist().back();
+ this->worklist().pop_back();
if (!this->referenced_list().insert(entry).second)
continue;
Garbage_collection::Section_ref::iterator find_it =
@@ -57,7 +57,7 @@ Garbage_collection::do_transitive_closure()
if (this->referenced_list().find(*it_v)
== this->referenced_list().end())
{
- this->worklist().push(*it_v);
+ this->worklist().push_back(*it_v);
}
}
}