Error if static array is cast to an array such that oldarraysize % newelemsize != 0.

This commit is contained in:
Christian Kamm
2008-07-29 12:32:01 +02:00
parent 99f1cfef36
commit caa61a5523
4 changed files with 23 additions and 15 deletions

View File

@@ -30,8 +30,8 @@ DSliceValue* DtoCatArrayElement(Type* type, Expression* exp1, Expression* exp2);
void DtoStaticArrayCopy(LLValue* dst, LLValue* src);
LLValue* DtoArrayEquals(TOK op, DValue* l, DValue* r);
LLValue* DtoArrayCompare(TOK op, DValue* l, DValue* r);
LLValue* DtoArrayEquals(Loc& loc, TOK op, DValue* l, DValue* r);
LLValue* DtoArrayCompare(Loc& loc, TOK op, DValue* l, DValue* r);
LLValue* DtoDynArrayIs(TOK op, DValue* l, DValue* r);
@@ -40,6 +40,6 @@ LLValue* DtoArrayCastLength(LLValue* len, const LLType* elemty, const LLType* ne
LLValue* DtoArrayLen(DValue* v);
LLValue* DtoArrayPtr(DValue* v);
DValue* DtoCastArray(DValue* val, Type* to);
DValue* DtoCastArray(Loc& loc, DValue* val, Type* to);
#endif // LLVMC_GEN_ARRAYS_H