changeset 1496:b4fc62f047cd

More DtoType -> DtoTypeNotVoid for getting the array element llvm type.
author Christian Kamm <kamm incasoftware de>
date Fri, 12 Jun 2009 21:34:35 +0200
parents 0c8d6d345001
children d9d50163e1a4
files gen/toir.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);