comparison gen/arrays.h @ 399:0e6b4d65d3f8

Give error messages for invalid casts. This required passing Loc information to certain functions. Fixes nocompile/b/bug_cgcs_354_A/B.
author Christian Kamm <kamm incasoftware de>
date Sat, 26 Jul 2008 17:19:16 +0200
parents 6b62e8cdf970
children c8d98ccad0cc
comparison
equal deleted inserted replaced
398:811f82dfddbd 399:0e6b4d65d3f8
12 LLConstant* DtoConstStaticArray(const LLType* t, LLConstant* c); 12 LLConstant* DtoConstStaticArray(const LLType* t, LLConstant* c);
13 13
14 void DtoArrayCopySlices(DSliceValue* dst, DSliceValue* src); 14 void DtoArrayCopySlices(DSliceValue* dst, DSliceValue* src);
15 void DtoArrayCopyToSlice(DSliceValue* dst, DValue* src); 15 void DtoArrayCopyToSlice(DSliceValue* dst, DValue* src);
16 16
17 void DtoArrayInit(DValue* array, DValue* value); 17 void DtoArrayInit(Loc& loc, DValue* array, DValue* value);
18 void DtoArrayAssign(LLValue* l, LLValue* r); 18 void DtoArrayAssign(LLValue* l, LLValue* r);
19 void DtoSetArray(LLValue* arr, LLValue* dim, LLValue* ptr); 19 void DtoSetArray(LLValue* arr, LLValue* dim, LLValue* ptr);
20 void DtoSetArrayToNull(LLValue* v); 20 void DtoSetArrayToNull(LLValue* v);
21 21
22 DSliceValue* DtoNewDynArray(Type* arrayType, DValue* dim, bool defaultInit=true); 22 DSliceValue* DtoNewDynArray(Type* arrayType, DValue* dim, bool defaultInit=true);