# HG changeset patch # User Christian Kamm # Date 1244835275 -7200 # Node ID b4fc62f047cdcba423023bff2f843c5ce05547d2 # Parent 0c8d6d3450014ab7a008fc3a3c5c794b08b1a14c More DtoType -> DtoTypeNotVoid for getting the array element llvm type. diff -r 0c8d6d345001 -r b4fc62f047cd gen/toir.cpp --- a/gen/toir.cpp Fri Jun 12 20:39:01 2009 +0200 +++ b/gen/toir.cpp Fri Jun 12 21:34:35 2009 +0200 @@ -466,7 +466,7 @@ bool nullterm = (t->ty != Tsarray); size_t endlen = nullterm ? len+1 : len; - const LLType* ct = DtoType(cty); + const LLType* ct = DtoTypeNotVoid(cty); const LLArrayType* at = LLArrayType::get(ct,endlen); LLConstant* _init; @@ -2377,7 +2377,7 @@ Type* elemt = bt->nextOf(); // build llvm array type - const LLArrayType* arrtype = LLArrayType::get(DtoType(elemt), elements->dim); + const LLArrayType* arrtype = LLArrayType::get(DtoTypeNotVoid(elemt), elements->dim); // dynamic arrays can occur here as well ... bool dyn = (bt->ty == Tarray);