IslNodeBuilder: Add missing __isl_take annotations

llvm-svn: 280936
This commit is contained in:
Tobias Grosser 2016-09-08 13:48:55 +00:00
parent d257373887
commit f3600dfa2d

View 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);