Apply patch from klickverbot. This is his 'proper fix' patch for bug #395.

This commit is contained in:
Kelly Wilson
2010-03-08 23:37:40 -07:00
parent 902bc06fb1
commit b38845e88e
6 changed files with 45 additions and 51 deletions

View File

@@ -2234,7 +2234,7 @@ DValue* CatAssignExp::toElem(IRState* p)
Type* e2type = e2->type->toBasetype();
if (e2type == elemtype) {
DtoCatAssignElement(e1type, l, e2);
DtoCatAssignElement(loc, e1type, l, e2);
}
else if (e1type == e2type) {
DSliceValue* slice = DtoCatAssignArray(l,e2);