diff gen/toir.c @ 48:4d171915a77b trunk

[svn r52] fixed static arrays in struct literals
author lindquist
date Fri, 19 Oct 2007 17:15:30 +0200
parents 6d60e6049c4e
children e5c4bece7fa1
line wrap: on
line diff
--- a/gen/toir.c	Fri Oct 19 17:00:35 2007 +0200
+++ b/gen/toir.c	Fri Oct 19 17:15:30 2007 +0200
@@ -1517,6 +1517,9 @@
                 else if (vxtype->ty == Tarray) {
                     LLVM_DtoArrayAssign(arrptr,val);
                 }
+                else if (vxtype->ty == Tsarray) {
+                    LLVM_DtoStaticArrayCopy(arrptr,val);
+                }
                 else
                     new llvm::StoreInst(val, arrptr, p->scopebb());
             }