Mercurial > projects > ldc
diff gen/toir.cpp @ 1643:8f121883bce8
Apply patch from klickverbot. This is his 'proper fix' patch for bug #395.
author | Kelly Wilson <wilsonk cpsc.ucalgary.ca> |
---|---|
date | Mon, 08 Mar 2010 23:37:40 -0700 |
parents | 5c0cebff9be8 |
children |
line wrap: on
line diff
--- a/gen/toir.cpp Mon Mar 08 23:10:26 2010 -0700 +++ b/gen/toir.cpp Mon Mar 08 23:37:40 2010 -0700 @@ -2234,7 +2234,7 @@ 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);