Allow nonconstants in associative array initializers

This commit is contained in:
Alexey Prokhin
2011-07-19 10:14:15 +04:00
parent bb2676dbe3
commit 99f5a73125
3 changed files with 53 additions and 40 deletions

View File

@@ -117,10 +117,6 @@ const LLType* DtoType(Type* t)
// aggregates
case Tstruct: {
TypeStruct* ts = (TypeStruct*)t;
#if 1
if (t != ts->sym->type) // TODO: interesting... why does it happen?
ts->sym->type->irtype = NULL; // set irtype to NULL, so IrTypeStruct constructor would not assert...
#endif
t->irtype = new IrTypeStruct(ts->sym);
return t->irtype->buildType();
}