Replace getPtrToType()

This commit is contained in:
Martin Kinkelin 2024-07-18 22:20:41 +02:00
parent d5af843ba9
commit 18709bb77f
9 changed files with 10 additions and 37 deletions

View file

@ -282,7 +282,7 @@ llvm::FunctionType *DtoFunctionType(FuncDeclaration *fdecl) {
LLType *thisty = DtoType(dthis);
// Logger::cout() << "this llvm type: " << *thisty << '\n';
if (ad->isStructDeclaration()) {
thisty = getPtrToType(thisty);
thisty = getOpaquePtrType();
}
} else {
IF_LOG Logger::println("chars: %s type: %s kind: %s", fdecl->toChars(),