comparison 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
comparison
equal deleted inserted replaced
423:3424f0fab7a9 424:c8d98ccad0cc
844 } 844 }
845 else if (fromtype->ty == Tclass) { 845 else if (fromtype->ty == Tclass) {
846 return DtoCastClass(val, to); 846 return DtoCastClass(val, to);
847 } 847 }
848 else if (fromtype->ty == Tarray || fromtype->ty == Tsarray) { 848 else if (fromtype->ty == Tarray || fromtype->ty == Tsarray) {
849 return DtoCastArray(val, to); 849 return DtoCastArray(loc, val, to);
850 } 850 }
851 else if (fromtype->ty == Tpointer || fromtype->ty == Tfunction) { 851 else if (fromtype->ty == Tpointer || fromtype->ty == Tfunction) {
852 return DtoCastPtr(loc, val, to); 852 return DtoCastPtr(loc, val, to);
853 } 853 }
854 else if (fromtype->ty == Tdelegate) { 854 else if (fromtype->ty == Tdelegate) {