diff options
Diffstat (limited to 'gdb/dwarf2/read.c')
-rw-r--r-- | gdb/dwarf2/read.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index e3609ab..48fb55c 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -9201,7 +9201,7 @@ quirk_rust_enum (struct type *type, struct objfile *objfile) { const char *name = rust_last_path_segment (enum_type->field (i).name ()); - discriminant_map[name] = TYPE_FIELD_ENUMVAL (enum_type, i); + discriminant_map[name] = enum_type->field (i).loc_enumval (); } } |