isl_union_templ.c: fix typo
authorSven Verdoolaege <skimo@kotnet.org>
Sun, 23 Jan 2011 14:42:47 +0000 (15:42 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Sun, 23 Jan 2011 16:39:37 +0000 (17:39 +0100)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_union_templ.c

index a04759f..6a3127a 100644 (file)
@@ -49,7 +49,7 @@ static __isl_give UNION *FN(UNION,alloc)(__isl_take isl_dim *dim, int size)
        if (!dim)
                return NULL;
 
-       u = isl_calloc_type(ctx, UNION);
+       u = isl_calloc_type(dim->ctx, UNION);
        if (!u)
                return NULL;