File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -800,7 +800,7 @@ void OpToOpPassAdaptor::runOnOperationAsyncImpl(bool verifyPasses) {
800
800
std::vector<std::atomic<bool >> activePMs (asyncExecutors.size ());
801
801
std::fill (activePMs.begin (), activePMs.end (), false );
802
802
std::atomic<bool > hasFailure = false ;
803
- auto processFn = [&](OpPMInfo &opInfo) {
803
+ parallelForEach (context, opInfos, [&](OpPMInfo &opInfo) {
804
804
// Find an executor for this operation.
805
805
auto it = llvm::find_if (activePMs, [](std::atomic<bool > &isActive) {
806
806
bool expectedInactive = false ;
@@ -818,8 +818,7 @@ void OpToOpPassAdaptor::runOnOperationAsyncImpl(bool verifyPasses) {
818
818
819
819
// Reset the active bit for this pass manager.
820
820
activePMs[pmIndex].store (false );
821
- };
822
- parallelForEach (context, opInfos, processFn);
821
+ });
823
822
824
823
// Signal a failure if any of the executors failed.
825
824
if (hasFailure)
You can’t perform that action at this time.
0 commit comments