mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-16 04:43:14 +01:00
Fixed struct default initializers.
This commit is contained in:
@@ -187,8 +187,7 @@ void DtoInitClass(TypeClass* tc, LLValue* dst)
|
||||
{
|
||||
tc->sym->codegen(Type::sir);
|
||||
|
||||
size_t presz = 2*getTypePaddedSize(DtoSize_t());
|
||||
uint64_t n = getTypePaddedSize(tc->ir.type->get()) - presz;
|
||||
uint64_t n = tc->sym->structsize - PTRSIZE * 2;
|
||||
|
||||
// set vtable field seperately, this might give better optimization
|
||||
LLValue* tmp = DtoGEPi(dst,0,0,"vtbl");
|
||||
|
||||
Reference in New Issue
Block a user