diff options
Diffstat (limited to 'gdb/dwarf2')
-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 4dc9ad6..b097f62 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -9691,7 +9691,7 @@ quirk_rust_enum (struct type *type, struct objfile *objfile) } /* Indicate that this is a variant type. */ - alloc_rust_variant (&objfile->objfile_obstack, type, 0, 1, + alloc_rust_variant (&objfile->objfile_obstack, type, 0, -1, gdb::array_view<discriminant_range> (ranges, n_fields - 1)); } |