diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2023-08-31 11:46:23 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-08-31 13:16:12 -0400 |
commit | 6c0f749351bb8f46bd6a37f9a36be8b8174f689d (patch) | |
tree | ad9f43e90b4097b08d79a32eac6ffe52920b6f1b /gdb/gdbtypes.c | |
parent | 321d8b3f28cc04fe8c58ac391025e8b18134ca60 (diff) | |
download | gdb-6c0f749351bb8f46bd6a37f9a36be8b8174f689d.zip gdb-6c0f749351bb8f46bd6a37f9a36be8b8174f689d.tar.gz gdb-6c0f749351bb8f46bd6a37f9a36be8b8174f689d.tar.bz2 |
gdb: remove FIELD_ARTIFICIAL
Replace uses with field::is_artificial.
Change-Id: I599616fdd9f4b6d044de492e8151aa6130725cd1
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/gdbtypes.c')
-rw-r--r-- | gdb/gdbtypes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index ca168b3..076a081 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -4243,7 +4243,7 @@ check_types_equal (struct type *type1, struct type *type2, const struct field *field1 = &type1->field (i); const struct field *field2 = &type2->field (i); - if (FIELD_ARTIFICIAL (*field1) != FIELD_ARTIFICIAL (*field2) + if (field1->is_artificial () != field2->is_artificial () || FIELD_BITSIZE (*field1) != FIELD_BITSIZE (*field2) || field1->loc_kind () != field2->loc_kind ()) return false; |