diff options
Diffstat (limited to 'gdb/compile/compile-c-symbols.c')
-rw-r--r-- | gdb/compile/compile-c-symbols.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/compile/compile-c-symbols.c b/gdb/compile/compile-c-symbols.c index e1f94ec..dd892b3 100644 --- a/gdb/compile/compile-c-symbols.c +++ b/gdb/compile/compile-c-symbols.c @@ -495,7 +495,7 @@ generate_vla_size (compile_instance *compiler, type = check_typedef (type); if (TYPE_IS_REFERENCE (type)) - type = check_typedef (TYPE_TARGET_TYPE (type)); + type = check_typedef (type->target_type ()); switch (type->code ()) { @@ -518,7 +518,7 @@ generate_vla_size (compile_instance *compiler, generate_vla_size (compiler, stream, gdbarch, registers_used, pc, type->index_type (), sym); generate_vla_size (compiler, stream, gdbarch, registers_used, pc, - TYPE_TARGET_TYPE (type), sym); + type->target_type (), sym); break; case TYPE_CODE_UNION: |