diff options
Diffstat (limited to 'gdb/rust-lang.c')
-rw-r--r-- | gdb/rust-lang.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c index b8cc4da..3fa550d 100644 --- a/gdb/rust-lang.c +++ b/gdb/rust-lang.c @@ -982,7 +982,7 @@ rust_composite_type (struct type *original, ++nfields; result->set_code (TYPE_CODE_STRUCT); - TYPE_NAME (result) = name; + result->set_name (name); TYPE_NFIELDS (result) = nfields; TYPE_FIELDS (result) |