[PATCH] [Polly][isl] Remove dead increment
Dominik Adamski via llvm-commits
llvm-commits at lists.llvm.org
Sat May 11 19:02:43 PDT 2019
Fix scan-analyzer issue: Value stored to 'o_ls' is never read for file
polly/lib/External/isl/isl_map.c .
Link to found issue:
http://llvm.org/reports/scan-build/report-isl_map.c-set_ma_divs-32-1.html#EndPath
Signed-off-by: Dominik Adamski <adamski.dominik at gmail.com>
---
polly/lib/External/isl/isl_map.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/polly/lib/External/isl/isl_map.c b/polly/lib/External/isl/isl_map.c
index 592a20b9364..f7a309fa584 100644
--- a/polly/lib/External/isl/isl_map.c
+++ b/polly/lib/External/isl/isl_map.c
@@ -12791,7 +12791,6 @@ static int set_ma_divs(__isl_keep isl_basic_map *bmap,
isl_seq_cpy(bmap->div[i] + o_bmap,
ls->div->row[i] + o_ls, n_div);
o_bmap += n_div;
- o_ls += n_div;
isl_seq_clr(bmap->div[i] + o_bmap, bmap->n_div - n_div);
if (isl_basic_map_add_div_constraints(bmap, i) < 0)
goto error;
--
2.17.1
More information about the llvm-commits
mailing list