]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/mdebugread.c
Unify arch_pointer_type and init_pointer_type
[thirdparty/binutils-gdb.git] / gdb / mdebugread.c
index 64884ac08f9ff8201c50ceb01a7b8c8f9c22817d..0c663cb344695eba23bb362718793ce34436de60 100644 (file)
@@ -1395,7 +1395,7 @@ basic_type (int bt, struct objfile *objfile)
       break;
 
     case btAdr:
-      tp = init_pointer_type (objfile, 32, "adr_32",
+      tp = init_pointer_type (alloc, 32, "adr_32",
                              objfile_type (objfile)->builtin_void);
       break;
 
@@ -1490,7 +1490,7 @@ basic_type (int bt, struct objfile *objfile)
       break;
 
     case btAdr64:
-      tp = init_pointer_type (objfile, 64, "adr_64",
+      tp = init_pointer_type (alloc, 64, "adr_64",
                              objfile_type (objfile)->builtin_void);
       break;