isl_map_read: add dummy variable name for unnamed variables
authorSven Verdoolaege <skimo@kotnet.org>
Fri, 19 Feb 2010 17:57:13 +0000 (18:57 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Fri, 19 Feb 2010 18:07:16 +0000 (19:07 +0100)
vars_drop assumes there is struct variable in the list of struct
variables for each variable in the dimension specification.

isl_input.c

index daeac8b..625de50 100644 (file)
@@ -254,6 +254,9 @@ static __isl_give isl_basic_map *read_var_list(struct isl_stream *s,
                        vec = accept_affine(s, v);
                        if (!vec)
                                goto error;
+                       v->v = variable_new(v, "", 0, v->n);
+                       if (!v->v)
+                               goto error;
                        v->n++;
                        bmap = isl_basic_map_add(bmap, type, 1);
                        bmap = isl_basic_map_extend_constraints(bmap, 1, 0);