From b52cedf6d2993f1bffd96d264853049cadfc7530 Mon Sep 17 00:00:00 2001 From: Alexey Prokhin Date: Mon, 3 Jan 2011 20:46:23 +0300 Subject: [PATCH] Add another stub to DtoInitializer() --- gen/llvmhelpers.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gen/llvmhelpers.cpp b/gen/llvmhelpers.cpp index 5e2880a0..05bd2c9d 100644 --- a/gen/llvmhelpers.cpp +++ b/gen/llvmhelpers.cpp @@ -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);