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:
0358ba8
)
isl_basic_map_is_empty: remove stale sample
author
Sven Verdoolaege
<skimo@kotnet.org>
Mon, 13 Jul 2009 09:22:10 +0000
(11:22 +0200)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Wed, 15 Jul 2009 10:08:08 +0000
(12:08 +0200)
isl_map.c
patch
|
blob
|
history
diff --git
a/isl_map.c
b/isl_map.c
index
77c133f
..
f7efcb7
100644
(file)
--- a/
isl_map.c
+++ b/
isl_map.c
@@
-3523,6
+3523,8
@@
int isl_basic_map_is_empty(struct isl_basic_map *bmap)
if (contains)
return 0;
}
+ isl_vec_free(bmap->sample);
+ bmap->sample = NULL;
bset = isl_basic_map_underlying_set(isl_basic_map_copy(bmap));
if (!bset)
return -1;
@@
-3530,8
+3532,7
@@
int isl_basic_map_is_empty(struct isl_basic_map *bmap)
if (!sample)
return -1;
empty = sample->size == 0;
- if (bmap->sample)
- isl_vec_free(bmap->sample);
+ isl_vec_free(bmap->sample);
bmap->sample = sample;
if (empty)
ISL_F_SET(bmap, ISL_BASIC_MAP_EMPTY);