X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fcompile%2Fcompile-cplus-types.c;h=20d84a549653d33e6ee743481646ecc1238b3e6e;hb=3d967001ecd3b325fc39d7f53ebf7054d1ecd503;hp=eb70dfe967a44747e936033d32070e92bfad01db;hpb=262abc0d67af006a709d0935940f9c9f5f7c5ee5;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/compile/compile-cplus-types.c b/gdb/compile/compile-cplus-types.c index eb70dfe967..20d84a5496 100644 --- a/gdb/compile/compile-cplus-types.c +++ b/gdb/compile/compile-cplus-types.c @@ -453,7 +453,7 @@ static gcc_type compile_cplus_convert_array (compile_cplus_instance *instance, struct type *type) { - struct type *range = TYPE_INDEX_TYPE (type); + struct type *range = type->index_type (); gcc_type element_type = instance->convert_type (TYPE_TARGET_TYPE (type)); if (TYPE_LOW_BOUND_KIND (range) != PROP_CONST)