projects
/
platform
/
upstream
/
isl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d26e5f
)
isl_convex_hull.c: uset_convex_hull_wrap_bounded: fix error handling
author
Sven Verdoolaege
<skimo@kotnet.org>
Sat, 26 Jun 2010 09:23:57 +0000
(11:23 +0200)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Sat, 26 Jun 2010 15:37:40 +0000
(17:37 +0200)
isl_convex_hull.c
patch
|
blob
|
history
diff --git
a/isl_convex_hull.c
b/isl_convex_hull.c
index
1fd8143
..
f8565e0
100644
(file)
--- a/
isl_convex_hull.c
+++ b/
isl_convex_hull.c
@@
-1808,6
+1808,9
@@
static struct isl_basic_set *uset_convex_hull_wrap_bounded(struct isl_set *set)
{
struct isl_basic_set *convex_hull = NULL;
+ if (!set)
+ goto error;
+
if (isl_set_n_dim(set) == 0) {
convex_hull = isl_basic_set_universe(isl_dim_copy(set->dim));
isl_set_free(set);
@@
-1816,9
+1819,6
@@
static struct isl_basic_set *uset_convex_hull_wrap_bounded(struct isl_set *set)
}
set = isl_set_set_rational(set);
-
- if (!set)
- goto error;
set = isl_set_coalesce(set);
if (!set)
goto error;