aboutsummaryrefslogtreecommitdiff
path: root/gdb/compile/compile-c-types.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/compile/compile-c-types.c')
-rw-r--r--gdb/compile/compile-c-types.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/compile/compile-c-types.c b/gdb/compile/compile-c-types.c
index c4f5811..3cf89fd 100644
--- a/gdb/compile/compile-c-types.c
+++ b/gdb/compile/compile-c-types.c
@@ -40,7 +40,7 @@ static gcc_type
convert_array (compile_c_instance *context, struct type *type)
{
gcc_type element_type;
- struct type *range = TYPE_INDEX_TYPE (type);
+ struct type *range = type->index_type ();
element_type = context->convert_type (TYPE_TARGET_TYPE (type));