Mercurial > projects > ldc
diff gen/llvmhelpers.h @ 440:d8dc221d3db7
Insert array bound checks for slices.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Wed, 30 Jul 2008 19:02:13 +0200 |
parents | 47b64d06eb9f |
children | 76078c8ab5b9 |
line wrap: on
line diff
--- a/gen/llvmhelpers.h Wed Jul 30 18:38:56 2008 +0200 +++ b/gen/llvmhelpers.h Wed Jul 30 19:02:13 2008 +0200 @@ -14,7 +14,7 @@ // assertion generator void DtoAssert(Loc* loc, DValue* msg); // array boundary check generator -void DtoArrayBoundsCheck(Loc& loc, DValue* arr, DValue* index); +void DtoArrayBoundsCheck(Loc& loc, DValue* arr, DValue* index, bool isslice); // return the LabelStatement from the current function with the given identifier or NULL if not found LabelStatement* DtoLabelStatement(Identifier* ident);