Adapt to free-standing size(Type*) function

This commit is contained in:
Martin Kinkelin 2024-07-16 16:22:35 +02:00
parent 665e14ac46
commit c9ac30c236
25 changed files with 80 additions and 59 deletions

View file

@ -198,7 +198,7 @@ llvm::FunctionType *DtoFunctionType(Type *type, IrFuncTy &irFty, Type *thistype,
attrs.addAttribute(LLAttribute::NonNull);
attrs.addAttribute(LLAttribute::NoUndef);
} else {
attrs.addDereferenceableAttr(loweredDType->size());
attrs.addDereferenceableAttr(size(loweredDType));
}
} else {
if (abi->passByVal(f, loweredDType)) {