Mercurial > projects > ldc
diff gen/llvmhelpers.cpp @ 424:c8d98ccad0cc
Error if static array is cast to an array such that oldarraysize % newelemsize != 0.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 29 Jul 2008 12:32:01 +0200 |
parents | 023fa78c1203 |
children | b5f55f471e0b |
line wrap: on
line diff
--- a/gen/llvmhelpers.cpp Tue Jul 29 10:55:58 2008 +0200 +++ b/gen/llvmhelpers.cpp Tue Jul 29 12:32:01 2008 +0200 @@ -846,7 +846,7 @@ return DtoCastClass(val, to); } else if (fromtype->ty == Tarray || fromtype->ty == Tsarray) { - return DtoCastArray(val, to); + return DtoCastArray(loc, val, to); } else if (fromtype->ty == Tpointer || fromtype->ty == Tfunction) { return DtoCastPtr(loc, val, to);