Add another stub to DtoInitializer()

This commit is contained in:
Alexey Prokhin
2011-01-03 20:46:23 +03:00
parent f8c0bce004
commit b52cedf6d2

View File

@@ -1250,7 +1250,7 @@ DValue* DtoInitializer(LLValue* target, Initializer* init)
assert(ex->exp);
return ex->exp->toElem(gIR);
}
else if (ArrayInitializer* ex = init->isArrayInitializer())
else if (ArrayInitializer* ai = init->isArrayInitializer())
{
// TODO: do nothing ?
}
@@ -1258,6 +1258,9 @@ DValue* DtoInitializer(LLValue* target, Initializer* init)
{
// do nothing
}
else if (StructInitializer *si = init->isStructInitializer()) {
// TODO: again nothing ?
}
else {
Logger::println("unsupported initializer: %s", init->toChars());
assert(0);