mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-04-29 06:30:39 +03:00
Replace getPtrToType()
This commit is contained in:
parent
d5af843ba9
commit
18709bb77f
9 changed files with 10 additions and 37 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue