aboutsummaryrefslogtreecommitdiff
path: root/gdb/compile/compile-cplus-types.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/compile/compile-cplus-types.c')
-rw-r--r--gdb/compile/compile-cplus-types.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/compile/compile-cplus-types.c b/gdb/compile/compile-cplus-types.c
index 8270def..bb4b267 100644
--- a/gdb/compile/compile-cplus-types.c
+++ b/gdb/compile/compile-cplus-types.c
@@ -475,7 +475,7 @@ compile_cplus_convert_array (compile_cplus_instance *instance,
if (range->bounds ()->high.kind () == PROP_LOCEXPR
|| range->bounds ()->high.kind () == PROP_LOCLIST)
{
- if (TYPE_VECTOR (type))
+ if (type->is_vector ())
{
const char *s = _("variably-sized vector type is not supported");
@@ -499,7 +499,7 @@ compile_cplus_convert_array (compile_cplus_instance *instance,
count = high_bound + 1;
}
- if (TYPE_VECTOR (type))
+ if (type->is_vector ())
return instance->plugin ().build_vector_type (element_type, count);
return instance->plugin ().build_array_type (element_type, count);