basic_map_read_polylib: clear newly created divs
authorSven Verdoolaege <skimo@kotnet.org>
Sat, 16 Oct 2010 13:05:24 +0000 (15:05 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Sun, 17 Oct 2010 09:19:07 +0000 (11:19 +0200)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_input.c

index a7eb860..7ff7fa2 100644 (file)
@@ -1203,6 +1203,7 @@ static __isl_give isl_basic_map *basic_map_read_polylib(struct isl_stream *s,
                int k = isl_basic_map_alloc_div(bmap);
                if (k < 0)
                        goto error;
+               isl_seq_clr(bmap->div[k], 1 + 1 + nparam + in + out + local);
        }
 
        for (i = 0; i < n_row; ++i)