Skip to content

Commit 745a387

Browse files
committed
[Flang]OpenMP]respond to merge comment on flang/lib/Lower/OpenMP/OpenMP.cpp
1 parent 26273d5 commit 745a387

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

flang/lib/Lower/OpenMP/OpenMP.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -573,8 +573,9 @@ static void processHostEvalClauses(lower::AbstractConverter &converter,
573573
[[fallthrough]];
574574
case OMPD_target_teams:
575575
cp.processNumTeams(stmtCtx, hostInfo.ops);
576-
processSingleNestedIf(
577-
[](Directive nestedDir) { return topDistributeSet.test(nestedDir); });
576+
processSingleNestedIf([](Directive nestedDir) {
577+
return topDistributeSet.test(nestedDir) || topLoopSet.test(nestedDir);
578+
});
578579
break;
579580

580581
case OMPD_teams_distribute:

0 commit comments

Comments
 (0)