diff gen/llvmhelpers.h @ 439:47b64d06eb9f

Enable array bounds check and emit them in IndexExp.
author Christian Kamm <kamm incasoftware de>
date Wed, 30 Jul 2008 18:38:56 +0200
parents 74101be2a553
children d8dc221d3db7
line wrap: on
line diff
--- a/gen/llvmhelpers.h	Wed Jul 30 16:48:35 2008 +0200
+++ b/gen/llvmhelpers.h	Wed Jul 30 18:38:56 2008 +0200
@@ -13,6 +13,8 @@
 
 // assertion generator
 void DtoAssert(Loc* loc, DValue* msg);
+// array boundary check generator
+void DtoArrayBoundsCheck(Loc& loc, DValue* arr, DValue* index);
 
 // return the LabelStatement from the current function with the given identifier or NULL if not found
 LabelStatement* DtoLabelStatement(Identifier* ident);