We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1cee35 commit 2c51f5eCopy full SHA for 2c51f5e
mlir/lib/Dialect/Async/Transforms/AsyncToAsyncRuntime.cpp
@@ -793,7 +793,7 @@ void AsyncToAsyncRuntimePass::runOnOperation() {
793
// Returns true if operation is inside the coroutine.
794
auto isInCoroutine = [&](Operation *op) -> bool {
795
auto parentFunc = op->getParentOfType<func::FuncOp>();
796
- return coros->find(parentFunc) != coros->end();
+ return coros->contains(parentFunc);
797
};
798
799
// Lower async operations to async.runtime operations.
0 commit comments