projects
/
platform
/
upstream
/
isl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add isl_set_flatten
[platform/upstream/isl.git]
/
isl_union_templ.c
diff --git
a/isl_union_templ.c
b/isl_union_templ.c
index
c8ae4c1
..
a04759f
100644
(file)
--- a/
isl_union_templ.c
+++ b/
isl_union_templ.c
@@
-46,6
+46,9
@@
static __isl_give UNION *FN(UNION,alloc)(__isl_take isl_dim *dim, int size)
{
UNION *u;
+ if (!dim)
+ return NULL;
+
u = isl_calloc_type(ctx, UNION);
if (!u)
return NULL;