From 8c0902ce21c731a5b9e94d9ce998748dc82ca9cb Mon Sep 17 00:00:00 2001 From: Alexey Prokhin Date: Fri, 17 Dec 2010 12:54:34 +0300 Subject: [PATCH] Fixed assert when compiling inline test --- gen/llvmhelpers.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gen/llvmhelpers.cpp b/gen/llvmhelpers.cpp index ea7b553d..4a9c41ff 100644 --- a/gen/llvmhelpers.cpp +++ b/gen/llvmhelpers.cpp @@ -1217,6 +1217,10 @@ DValue* DtoInitializer(LLValue* target, Initializer* init) assert(ex->exp); return ex->exp->toElem(gIR); } + else if (ArrayInitializer* ex = init->isArrayInitializer()) + { + // TODO: do nothing ? + } else if (init->isVoidInitializer()) { // do nothing