aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2/cu.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/dwarf2/cu.c')
-rw-r--r--gdb/dwarf2/cu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2/cu.c b/gdb/dwarf2/cu.c
index fe95d7e..e95208e 100644
--- a/gdb/dwarf2/cu.c
+++ b/gdb/dwarf2/cu.c
@@ -110,7 +110,7 @@ dwarf2_cu::addr_type () const
struct type *addr_type = lookup_pointer_type (void_type);
int addr_size = this->per_cu->addr_size ();
- if (TYPE_LENGTH (addr_type) == addr_size)
+ if (addr_type->length () == addr_size)
return addr_type;
addr_type = addr_sized_int_type (addr_type->is_unsigned ());