Skip to content

Commit 2c51f5e

Browse files
[mlir] Use DenseMap::contains (NFC) (#140351)
1 parent e1cee35 commit 2c51f5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/Async/Transforms/AsyncToAsyncRuntime.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ void AsyncToAsyncRuntimePass::runOnOperation() {
793793
// Returns true if operation is inside the coroutine.
794794
auto isInCoroutine = [&](Operation *op) -> bool {
795795
auto parentFunc = op->getParentOfType<func::FuncOp>();
796-
return coros->find(parentFunc) != coros->end();
796+
return coros->contains(parentFunc);
797797
};
798798

799799
// Lower async operations to async.runtime operations.

0 commit comments

Comments
 (0)