comparison 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
comparison
equal deleted inserted replaced
359:926f65e39246 360:9c9544fd769d
571 LOG_SCOPE; 571 LOG_SCOPE;
572 572
573 Type* t1 = DtoDType(exp1->type); 573 Type* t1 = DtoDType(exp1->type);
574 Type* t2 = DtoDType(exp2->type); 574 Type* t2 = DtoDType(exp2->type);
575 575
576 assert(t1->ty == Tarray); 576 assert(t1->ty == Tarray || t1->ty == Tsarray);
577 assert(t1->ty == t2->ty); 577 assert(t2->ty == Tarray || t2->ty == Tsarray);
578 578
579 DValue* e1 = exp1->toElem(gIR); 579 DValue* e1 = exp1->toElem(gIR);
580 DValue* e2 = exp2->toElem(gIR); 580 DValue* e2 = exp2->toElem(gIR);
581 581
582 llvm::Value *len1, *len2, *src1, *src2, *res; 582 llvm::Value *len1, *len2, *src1, *src2, *res;