Mercurial > projects > ldc
diff dmd/mars.c @ 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 | ecf70fe065b9 |
children | cc40db549aea |
line wrap: on
line diff
--- a/dmd/mars.c Wed Jul 30 16:48:35 2008 +0200 +++ b/dmd/mars.c Wed Jul 30 18:38:56 2008 +0200 @@ -270,7 +270,7 @@ global.params.useInvariants = 1; global.params.useIn = 1; global.params.useOut = 1; - global.params.useArrayBounds = 0; + global.params.useArrayBounds = 1; global.params.useSwitchError = 1; global.params.useInline = 0; // this one messes things up to a point where codegen breaks global.params.llvmInline = 0; // use this one instead to know if inline passes should be run