diff options
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/amd64-windows-tdep.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 39a2cf3..183b929 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2020-10-05 Simon Marchi <simon.marchi@efficios.com> + + * amd64-windows-tdep.c (amd64_windows_return_value): Use + type::is_vector instead of TYPE_VECTOR. + 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca> * auto-load.c (auto_load_objfile_script_1): Don't use diff --git a/gdb/amd64-windows-tdep.c b/gdb/amd64-windows-tdep.c index 320388b..48cd009 100644 --- a/gdb/amd64-windows-tdep.c +++ b/gdb/amd64-windows-tdep.c @@ -371,7 +371,7 @@ amd64_windows_return_value (struct gdbarch *gdbarch, struct value *function, break; case TYPE_CODE_ARRAY: /* __m128, __m128i and __m128d are returned via XMM0. */ - if (TYPE_VECTOR (type) && len == 16) + if (type->is_vector () && len == 16) { enum type_code code = TYPE_TARGET_TYPE (type)->code (); if (code == TYPE_CODE_INT || code == TYPE_CODE_FLT) |