projects
/
platform
/
upstream
/
isl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
bernstein_coefficients_cell: handle NULL poly
[platform/upstream/isl.git]
/
isl_bernstein.c
diff --git
a/isl_bernstein.c
b/isl_bernstein.c
index
1458e27
..
7358b71
100644
(file)
--- a/
isl_bernstein.c
+++ b/
isl_bernstein.c
@@
-255,6
+255,9
@@
static int bernstein_coefficients_cell(__isl_take isl_cell *cell, void *user)
isl_set *dom;
isl_ctx *ctx;
+ if (!poly)
+ goto error;
+
nvar = isl_qpolynomial_dim(poly, isl_dim_set) - 1;
n_vertices = cell->n_vertices;