Mercurial > projects > ldc
diff gen/arrays.cpp @ 360:9c9544fd769d trunk
[svn r381] Allow concatenating with static arrays.
author | ChristianK |
---|---|
date | Mon, 14 Jul 2008 17:26:58 +0200 |
parents | b85cf5faccfc |
children | 8014dbd24605 |
line wrap: on
line diff
--- a/gen/arrays.cpp Mon Jul 14 17:22:43 2008 +0200 +++ b/gen/arrays.cpp Mon Jul 14 17:26:58 2008 +0200 @@ -573,8 +573,8 @@ Type* t1 = DtoDType(exp1->type); Type* t2 = DtoDType(exp2->type); - assert(t1->ty == Tarray); - assert(t1->ty == t2->ty); + assert(t1->ty == Tarray || t1->ty == Tsarray); + assert(t2->ty == Tarray || t2->ty == Tsarray); DValue* e1 = exp1->toElem(gIR); DValue* e2 = exp2->toElem(gIR);