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:
ffeb429
)
Add missing cow to isl_{basic_,}map_set_dim_name()
author
Andreas Kloeckner
<inform@tiker.net>
Mon, 31 Oct 2011 08:09:27 +0000
(
04:09
-0400)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Mon, 31 Oct 2011 16:57:23 +0000
(17:57 +0100)
Signed-off-by: Andreas Kloeckner <inform@tiker.net>
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
28356cd
..
af42750
100644
(file)
--- a/
isl_map.c
+++ b/
isl_map.c
@@
-492,6
+492,7
@@
__isl_give isl_basic_map *isl_basic_map_set_dim_name(
__isl_take isl_basic_map *bmap,
enum isl_dim_type type, unsigned pos, const char *s)
{
+ bmap = isl_basic_map_cow(bmap);
if (!bmap)
return NULL;
bmap->dim = isl_space_set_dim_name(bmap->dim, type, pos, s);
@@
-508,6
+509,7
@@
__isl_give isl_map *isl_map_set_dim_name(__isl_take isl_map *map,
{
int i;
+ map = isl_map_cow(map);
if (!map)
return NULL;