# HG changeset patch # User Mario de Sousa # Date 1342796222 -3600 # Node ID 31bda4cde875b1dd08d161e3388a7dce6ecc42f9 # Parent 65a2e5ac2576a090e051bbcb2c0df885fde64a48 Fix comment (bug found by Manuele). diff -r 65a2e5ac2576 -r 31bda4cde875 stage3/array_range_check.cc --- a/stage3/array_range_check.cc Fri Jul 20 15:53:58 2012 +0100 +++ b/stage3/array_range_check.cc Fri Jul 20 15:57:02 2012 +0100 @@ -33,13 +33,10 @@ /* - * TODO: - * - Check subscript values fall within allowed range. - * For the checking of subscript values to work correctly, we would need to have constant folding working too: + * Array Range Checking: + * - Check whether array subscript values fall within the allowed range. + * Note that for the checking of subscript values to work correctly, we need to have constant folding working too: * array_var[8 + 99] can not be checked without constant folding. - * However, even without constant folding range check may be usefull, - * and later changing it to use the values coming out of constant folding should not be very difficult. - * */