mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-27 02:09:54 +00:00
IslNodeBuilder: Add missing __isl_take annotations
llvm-svn: 280936
This commit is contained in:
parent
d257373887
commit
f3600dfa2d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user