gdb: use gdb:hash_enum as hash function in offset_map_type
[deliverable/binutils-gdb.git] / gdb / dwarf2 / read.c
index 82564edd7b24d44b2a1fb8ba7dc6faebfcf9aedd..c5528887fafe98598ea560105d9a9d6d886a106f 100644 (file)
@@ -14513,7 +14513,8 @@ dwarf2_add_type_defn (struct field_info *fip, struct die_info *die,
 
 /* A convenience typedef that's used when finding the discriminant
    field for a variant part.  */
-typedef std::unordered_map<sect_offset, int> offset_map_type;
+typedef std::unordered_map<sect_offset, int, gdb::hash_enum<sect_offset>>
+  offset_map_type;
 
 /* Compute the discriminant range for a given variant.  OBSTACK is
    where the results will be stored.  VARIANT is the variant to
This page took 0.029893 seconds and 4 git commands to generate.