diff gen/arrays.h @ 442:76078c8ab5b9

Move DtoArrayBoundsCheck from llvmhelpers to arrays.
author Christian Kamm <kamm incasoftware de>
date Thu, 31 Jul 2008 19:14:49 +0200
parents c8d98ccad0cc
children e6bcc4d9e5ff
line wrap: on
line diff
--- a/gen/arrays.h	Wed Jul 30 20:25:46 2008 +0200
+++ b/gen/arrays.h	Thu Jul 31 19:14:49 2008 +0200
@@ -42,4 +42,7 @@
 
 DValue* DtoCastArray(Loc& loc, DValue* val, Type* to);
 
+// generates an array bounds check
+void DtoArrayBoundsCheck(Loc& loc, DValue* arr, DValue* index, bool isslice);
+
 #endif // LLVMC_GEN_ARRAYS_H