diff 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
line wrap: on
line diff
--- a/gen/arrays.h	Sat Jul 26 15:42:05 2008 +0200
+++ b/gen/arrays.h	Sat Jul 26 17:19:16 2008 +0200
@@ -14,7 +14,7 @@
 void DtoArrayCopySlices(DSliceValue* dst, DSliceValue* src);
 void DtoArrayCopyToSlice(DSliceValue* dst, DValue* src);
 
-void DtoArrayInit(DValue* array, DValue* value);
+void DtoArrayInit(Loc& loc, DValue* array, DValue* value);
 void DtoArrayAssign(LLValue* l, LLValue* r);
 void DtoSetArray(LLValue* arr, LLValue* dim, LLValue* ptr);
 void DtoSetArrayToNull(LLValue* v);