mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-03-15 00:21:50 +01:00
Abstracted more (most) ABI details out of the normal codegen.
This commit is contained in:
@@ -227,7 +227,7 @@ const LLStructType* DtoDelegateType(Type* t)
|
||||
{
|
||||
assert(t->ty == Tdelegate);
|
||||
const LLType* i8ptr = getVoidPtrType();
|
||||
const LLType* func = DtoFunctionType(t->nextOf(), NULL, i8ptr);
|
||||
const LLType* func = DtoFunctionType(t->nextOf(), NULL, Type::tvoid->pointerTo());
|
||||
const LLType* funcptr = getPtrToType(func);
|
||||
return LLStructType::get(i8ptr, funcptr, NULL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user