Mercurial > projects > dang
diff gen/CodeGen.d @ 81:110c7e1c4ca2 new_gen
Now you can declare array
author | Anders Johnsen <skabet@gmail.com> |
---|---|
date | Fri, 02 May 2008 18:23:33 +0200 |
parents | 682e20aa224f |
children | 06dda301ea61 |
line wrap: on
line diff
--- a/gen/CodeGen.d Fri May 02 17:33:50 2008 +0200 +++ b/gen/CodeGen.d Fri May 02 18:23:33 2008 +0200 @@ -675,6 +675,12 @@ type_map[t] = res; return res; } + else if (auto f = t.asArray) + { + Type res = ArrayType.Get(llvm(f.arrayOf), f.size); + type_map[t] = res; + return res; + } assert(0, "Only integers, structs and functions are supported"); }