diff options
Diffstat (limited to 'gcc/tree-sra.c')
-rw-r--r-- | gcc/tree-sra.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-sra.c b/gcc/tree-sra.c index 6fafe55..936d3a6 100644 --- a/gcc/tree-sra.c +++ b/gcc/tree-sra.c @@ -1055,7 +1055,7 @@ completely_scalarize (tree base, tree decl_type, HOST_WIDE_INT offset, tree ref) idx = wi::sext (idx, TYPE_PRECISION (domain)); max = wi::sext (max, TYPE_PRECISION (domain)); } - for (int el_off = offset; wi::les_p (idx, max); ++idx) + for (int el_off = offset; idx <= max; ++idx) { tree nref = build4 (ARRAY_REF, elemtype, ref, |