summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2015-08-12 15:45:41 +0000
committerTobias Grosser <tobias@grosser.es>2015-08-12 15:45:41 +0000
commit72e8f5999e93cbed050b4ca6a017296539b1094b (patch)
tree91f41485a5964b4b3600bf92656f826ebf77d981
parentd46fd5ed95013861133cce4df2fda2126ddb7c29 (diff)
downloadbcm5719-llvm-72e8f5999e93cbed050b4ca6a017296539b1094b.tar.gz
bcm5719-llvm-72e8f5999e93cbed050b4ca6a017296539b1094b.zip
Make sure we increment the reference counter when passing out the isl_pw_aff
llvm-svn: 244758
-rw-r--r--polly/include/polly/ScopInfo.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/polly/include/polly/ScopInfo.h b/polly/include/polly/ScopInfo.h
index ffc2b32bcd0..cad28be13c1 100644
--- a/polly/include/polly/ScopInfo.h
+++ b/polly/include/polly/ScopInfo.h
@@ -25,6 +25,7 @@
#include "llvm/ADT/MapVector.h"
#include "llvm/Analysis/RegionPass.h"
+#include "isl/aff.h"
#include "isl/ctx.h"
#include <forward_list>
@@ -101,9 +102,9 @@ public:
}
/// @brief Return the size of dimension @p dim as isl_pw_aff.
- const isl_pw_aff *getDimensionSizePw(unsigned dim) const {
+ __isl_give isl_pw_aff *getDimensionSizePw(unsigned dim) const {
assert(dim < getNumberOfDimensions() && "Invalid dimension");
- return DimensionSizesPw[dim - 1];
+ return isl_pw_aff_copy(DimensionSizesPw[dim - 1]);
}
/// @brief Get the type of the elements stored in this array.
OpenPOWER on IntegriCloud