From 33f302b5cb4bd8f53caed80afffddb5b1c8b86f7 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Tue, 10 Aug 2010 20:52:31 +0200 Subject: [PATCH] iscc: allow inverse on non-union maps again --- iscc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iscc.c b/iscc.c index bbae2e3..e2659dc 100644 --- a/iscc.c +++ b/iscc.c @@ -1061,7 +1061,9 @@ static struct isl_obj power(struct isl_stream *s, struct isl_obj obj) goto error; } isl_token_free(tok); - isl_assert(s->ctx, obj.type == isl_obj_union_map, goto error); + isl_assert(s->ctx, is_subtype(obj, isl_obj_union_map), goto error); + if (obj.type != isl_obj_union_map) + obj = convert(obj, isl_obj_union_map); obj.v = isl_union_map_reverse(obj.v); if (!obj.v) -- 2.11.4.GIT