From 44c4d8bef4defba812b0765a12d345fa9826f4a9 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Tue, 25 May 2010 13:52:16 +0000 Subject: [PATCH] compound_graph paths are also allowed for arrays [r27587] --- ir/tr/compound_path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ir/tr/compound_path.c b/ir/tr/compound_path.c index 81b41702a..56f7b9c5d 100644 --- a/ir/tr/compound_path.c +++ b/ir/tr/compound_path.c @@ -40,7 +40,7 @@ compound_graph_path *new_compound_graph_path(ir_type *tp, int length) { compound_graph_path *res; - assert(is_compound_type(tp)); + assert(is_compound_type(tp) || is_Array_type(tp)); assert(length > 0); res = xmalloc(sizeof(*res) + (length-1) * sizeof(res->list[0])); -- 2.20.1