]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/coffread.c
Use type allocator for array types
[thirdparty/binutils-gdb.git] / gdb / coffread.c
index ef92ffdc571b9e4283ded1e9da33fe2151a54907..be31144639d1f500c96713aba10fb27c5b73c46d 100644 (file)
@@ -1783,8 +1783,7 @@ decode_type (struct coff_symbol *cs, unsigned int c_type,
          type_allocator alloc (objfile);
          range_type
            = create_static_range_type (alloc, index_type, 0, n - 1);
-         type =
-           create_array_type (NULL, base_type, range_type);
+         type = create_array_type (alloc, base_type, range_type);
        }
       return type;
     }