Skip to content

Commit c971b53

Browse files
committed
[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
1 parent 19e883f commit c971b53

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

polly/include/polly/ScopInfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2319,7 +2319,7 @@ class Scop {
23192319
/// ScopBuilder::buildAccessRelations. Therefore, if this
23202320
/// method is called before buildAccessRelations, false
23212321
/// must be passed.
2322-
void removeStmts(std::function<bool(ScopStmt &)> ShouldDelete,
2322+
void removeStmts(function_ref<bool(ScopStmt &)> ShouldDelete,
23232323
bool AfterHoisting = true);
23242324

23252325
/// Get an isl string representing the context.

polly/lib/Analysis/ScopInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1752,7 +1752,7 @@ void Scop::removeFromStmtMap(ScopStmt &Stmt) {
17521752
}
17531753
}
17541754

1755-
void Scop::removeStmts(std::function<bool(ScopStmt &)> ShouldDelete,
1755+
void Scop::removeStmts(function_ref<bool(ScopStmt &)> ShouldDelete,
17561756
bool AfterHoisting) {
17571757
for (auto StmtIt = Stmts.begin(), StmtEnd = Stmts.end(); StmtIt != StmtEnd;) {
17581758
if (!ShouldDelete(*StmtIt)) {

0 commit comments

Comments
 (0)