Fix elf64-ppc.c electric fence warning
[deliverable/binutils-gdb.git] / gold / gc.h
index 2db7cb909b052891f8edb0ecad8cde0f54d40bc2..be4a63c5c22c2f6ac5fc8106939b0f2af7e51e47 100644 (file)
--- a/gold/gc.h
+++ b/gold/gc.h
@@ -109,11 +109,8 @@ class Garbage_collection
   {
     Section_id src_id(src_object, src_shndx);
     Section_id dst_id(dst_object, dst_shndx);
-    Section_ref::iterator p = this->section_reloc_map_.find(src_id);
-    if (p == this->section_reloc_map_.end())
-      this->section_reloc_map_[src_id].insert(dst_id);
-    else
-      p->second.insert(dst_id);
+    Sections_reachable& reachable = this->section_reloc_map_[src_id];
+    reachable.insert(dst_id);
   }
 
  private:
This page took 0.032676 seconds and 4 git commands to generate.