IslNodeBuilder: Add missing __isl_take annotations
authorTobias Grosser <tobias@grosser.es>
Thu, 8 Sep 2016 13:48:55 +0000 (13:48 +0000)
committerTobias Grosser <tobias@grosser.es>
Thu, 8 Sep 2016 13:48:55 +0000 (13:48 +0000)
llvm-svn: 280936

polly/lib/CodeGen/IslNodeBuilder.cpp

index e5cbbb7..5bfd527 100644 (file)
@@ -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);