mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-07-10 09:24:09 +02:00
Fixed deal breaker bug for more-at-once compilation when any module contained aggregates. Fixes ticket #272 .
This commit is contained in:
@@ -159,22 +159,8 @@ void IrTypeClass::addBaseClassData(
|
||||
offset = vd->offset + vd->type->size();
|
||||
|
||||
// create ir field
|
||||
if (vd->ir.irField == NULL)
|
||||
new IrField(vd, field_index);
|
||||
else
|
||||
assert(vd->ir.irField->index == field_index &&
|
||||
vd->ir.irField->unionOffset == 0 &&
|
||||
"inconsistent field data");
|
||||
field_index++;
|
||||
}
|
||||
|
||||
// make sure all fields really get their ir field
|
||||
ArrayIter<VarDeclaration> it(base->fields);
|
||||
for (; !it.done(); it.next())
|
||||
{
|
||||
VarDeclaration* vd = it.get();
|
||||
if (vd->ir.irField == NULL)
|
||||
new IrField(vd, 0, vd->offset);
|
||||
vd->aggrIndex = (unsigned)field_index;
|
||||
++field_index;
|
||||
}
|
||||
|
||||
// any interface implementations?
|
||||
|
||||
Reference in New Issue
Block a user