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:
75880d1
)
isl_dim_replace: call isl_dim_cow before changing isl_dim
author
Sven Verdoolaege
<skimo@kotnet.org>
Sun, 3 Oct 2010 22:35:23 +0000
(
00:35
+0200)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Wed, 6 Oct 2010 09:36:14 +0000
(11:36 +0200)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_dim.c
patch
|
blob
|
history
diff --git
a/isl_dim.c
b/isl_dim.c
index
2002fb6
..
d198fa5
100644
(file)
--- a/
isl_dim.c
+++ b/
isl_dim.c
@@
-1098,6
+1098,8
@@
__isl_give isl_dim *isl_dim_flatten(__isl_take isl_dim *dim)
__isl_give isl_dim *isl_dim_replace(__isl_take isl_dim *dst,
enum isl_dim_type type, __isl_keep isl_dim *src)
{
+ dst = isl_dim_cow(dst);
+
if (!dst || !src)
goto error;