diff options
| author | Tobias Grosser <tobias@grosser.es> | 2016-09-08 13:48:55 +0000 |
|---|---|---|
| committer | Tobias Grosser <tobias@grosser.es> | 2016-09-08 13:48:55 +0000 |
| commit | f3600dfa2d2ff493badcdc32caefdfc42b966c72 (patch) | |
| tree | 267f381ee51938bd37e79b33aaaf4a9f3f74ca6f | |
| parent | d257373887c36c033ad71d06858e890a47c4f6c4 (diff) | |
| download | bcm5719-llvm-f3600dfa2d2ff493badcdc32caefdfc42b966c72.tar.gz bcm5719-llvm-f3600dfa2d2ff493badcdc32caefdfc42b966c72.zip | |
IslNodeBuilder: Add missing __isl_take annotations
llvm-svn: 280936
| -rw-r--r-- | polly/lib/CodeGen/IslNodeBuilder.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/polly/lib/CodeGen/IslNodeBuilder.cpp b/polly/lib/CodeGen/IslNodeBuilder.cpp index e5cbbb7fee7..5bfd5279ff0 100644 --- a/polly/lib/CodeGen/IslNodeBuilder.cpp +++ b/polly/lib/CodeGen/IslNodeBuilder.cpp @@ -235,7 +235,8 @@ isl_stat addReferencesFromStmt(const ScopStmt *Stmt, void *UserPtr, /// @param Set A set which references the ScopStmt we are interested in. /// @param UserPtr A void pointer that can be casted to a SubtreeReferences /// structure. -static isl_stat addReferencesFromStmtSet(isl_set *Set, void *UserPtr) { +static isl_stat addReferencesFromStmtSet(__isl_take isl_set *Set, + void *UserPtr) { isl_id *Id = isl_set_get_tuple_id(Set); auto *Stmt = static_cast<const ScopStmt *>(isl_id_get_user(Id)); isl_id_free(Id); @@ -905,7 +906,7 @@ bool IslNodeBuilder::materializeParameters(isl_set *Set, bool All) { } /// Add the number of dimensions in @p BS to @p U. -static isl_stat countTotalDims(isl_basic_set *BS, void *U) { +static isl_stat countTotalDims(__isl_take isl_basic_set *BS, void *U) { unsigned *NumTotalDim = static_cast<unsigned *>(U); *NumTotalDim += isl_basic_set_total_dim(BS); isl_basic_set_free(BS); |

