File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -213,11 +213,12 @@ class AssociatedLoopChecker {
213213 std::map<std::string, std::int64_t > constructNamesAndLevels_;
214214};
215215
216- // `OmpDesignatorChecker ` is used to check if the designator
217- // can appear within the OpenMP construct
218- class OmpDesignatorChecker {
216+ // `OmpUnitedTaskDesignatorChecker ` is used to check if the designator
217+ // can appear within the TASK construct
218+ class OmpUnitedTaskDesignatorChecker {
219219public:
220- OmpDesignatorChecker (SemanticsContext &context) : context_{context} {}
220+ OmpUnitedTaskDesignatorChecker (SemanticsContext &context)
221+ : context_{context} {}
221222
222223 template <typename T> bool Pre (const T &) { return true ; }
223224 template <typename T> void Post (const T &) {}
@@ -1199,8 +1200,8 @@ void OmpStructureChecker::Enter(const parser::OpenMPBlockConstruct &x) {
11991200 const auto &clauses{std::get<parser::OmpClauseList>(beginBlockDir.t )};
12001201 for (const auto &clause : clauses.v ) {
12011202 if (std::get_if<parser::OmpClause::Untied>(&clause.u )) {
1202- OmpDesignatorChecker ompDesignatorChecker {context_};
1203- parser::Walk (block, ompDesignatorChecker );
1203+ OmpUnitedTaskDesignatorChecker check {context_};
1204+ parser::Walk (block, check );
12041205 }
12051206 }
12061207 break ;
You can’t perform that action at this time.
0 commit comments