[Polly] Use llvm::function_ref. NFC.

As suggested by David Blaike at
https://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20200824/822584.html
This commit is contained in:
Michael Kruse 2020-08-26 13:03:18 -05:00
parent 19e883fc59
commit c971b53b22
2 changed files with 2 additions and 2 deletions

View File

@ -2319,7 +2319,7 @@ public:
/// ScopBuilder::buildAccessRelations. Therefore, if this
/// method is called before buildAccessRelations, false
/// must be passed.
void removeStmts(std::function<bool(ScopStmt &)> ShouldDelete,
void removeStmts(function_ref<bool(ScopStmt &)> ShouldDelete,
bool AfterHoisting = true);
/// Get an isl string representing the context.

View File

@ -1752,7 +1752,7 @@ void Scop::removeFromStmtMap(ScopStmt &Stmt) {
}
}
void Scop::removeStmts(std::function<bool(ScopStmt &)> ShouldDelete,
void Scop::removeStmts(function_ref<bool(ScopStmt &)> ShouldDelete,
bool AfterHoisting) {
for (auto StmtIt = Stmts.begin(), StmtEnd = Stmts.end(); StmtIt != StmtEnd;) {
if (!ShouldDelete(*StmtIt)) {