mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-08 11:56:12 +03:00
Adapt to new _d_newitemT template lowering for heap-allocations of structs
This commit is contained in:
parent
3ab72d8e52
commit
c5704c764d
4 changed files with 4 additions and 19 deletions
|
@ -89,8 +89,7 @@ static void checkForImplicitGCCall(const Loc &loc, const char *name) {
|
|||
"_d_newarrayU",
|
||||
"_d_newclass",
|
||||
"_d_allocclass",
|
||||
"_d_newitemT",
|
||||
"_d_newitemiT",
|
||||
// TODO: _d_newitemT instantiations
|
||||
};
|
||||
|
||||
if (binary_search(&GCNAMES[0],
|
||||
|
@ -618,11 +617,6 @@ static void buildRuntimeModule() {
|
|||
createFwdDecl(LINK::c, throwableTy, {"_d_newThrowable"}, {classInfoTy},
|
||||
{STCconst});
|
||||
|
||||
// void* _d_newitemT (TypeInfo ti)
|
||||
// void* _d_newitemiT(TypeInfo ti)
|
||||
createFwdDecl(LINK::c, voidPtrTy, {"_d_newitemT", "_d_newitemiT"},
|
||||
{typeInfoTy}, {0});
|
||||
|
||||
// void _d_delarray_t(void[]* p, const TypeInfo_Struct ti)
|
||||
createFwdDecl(LINK::c, voidTy, {"_d_delarray_t"},
|
||||
{voidArrayPtrTy, structTypeInfoTy}, {0, STCconst});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue