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:
8a05ad5
)
isl_basic_set_alloc: create basic set in proper set space
author
Sven Verdoolaege
<skimo@kotnet.org>
Sun, 28 Aug 2011 06:55:17 +0000
(08:55 +0200)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Sat, 3 Sep 2011 10:04:54 +0000
(12:04 +0200)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_map.c
patch
|
blob
|
history
diff --git
a/isl_map.c
b/isl_map.c
index
bb242e7
..
f08afe6
100644
(file)
--- a/
isl_map.c
+++ b/
isl_map.c
@@
-667,7
+667,13
@@
struct isl_basic_set *isl_basic_set_alloc(struct isl_ctx *ctx,
unsigned n_eq, unsigned n_ineq)
{
struct isl_basic_map *bmap;
- bmap = isl_basic_map_alloc(ctx, nparam, 0, dim, extra, n_eq, n_ineq);
+ isl_space *space;
+
+ space = isl_space_set_alloc(ctx, nparam, dim);
+ if (!space)
+ return NULL;
+
+ bmap = isl_basic_map_alloc_space(space, extra, n_eq, n_ineq);
return (struct isl_basic_set *)bmap;
}