mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-20 05:33:13 +01:00
Add another stub to DtoInitializer()
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user