From c87536b6e8e1db884cf0a3d2db533690547581ff Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Fri, 19 Feb 2010 18:57:13 +0100 Subject: [PATCH] isl_map_read: add dummy variable name for unnamed variables vars_drop assumes there is struct variable in the list of struct variables for each variable in the dimension specification. --- isl_input.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/isl_input.c b/isl_input.c index daeac8b2..625de50c 100644 --- a/isl_input.c +++ b/isl_input.c @@ -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); -- 2.11.4.GIT