File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments