Skip to content

Commit 5c76ada

Browse files
use topTeamsSet not allTeamsSet
1 parent fb029d2 commit 5c76ada

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

flang/lib/Semantics/check-omp-loop.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ void OmpStructureChecker::Enter(const parser::OpenMPLoopConstruct &x) {
263263
}
264264

265265
if (CurrentDirectiveIsNested() &&
266-
llvm::omp::allTeamsSet.test(GetContext().directive) &&
266+
llvm::omp::topTeamsSet.test(GetContext().directive) &&
267267
GetContextParent().directive == llvm::omp::Directive::OMPD_target &&
268268
!GetDirectiveNest(TargetBlockOnlyTeams)) {
269269
context_.Say(GetContextParent().directiveSource,

flang/lib/Semantics/check-omp-structure.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5219,7 +5219,7 @@ bool OmpStructureChecker::CheckTargetBlockOnlyTeams(
52195219
std::get_if<parser::OpenMPLoopConstruct>(
52205220
&ompConstruct->u)}) {
52215221
llvm::omp::Directive dirId{ompLoopConstruct->BeginDir().DirId()};
5222-
if (llvm::omp::allTeamsSet.test(dirId)) {
5222+
if (llvm::omp::topTeamsSet.test(dirId)) {
52235223
nestedTeams = true;
52245224
}
52255225
}

0 commit comments

Comments
 (0)