diff options
| author | Mingming Liu <mingmingl@google.com> | 2025-09-10 15:25:31 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-10 15:25:31 -0700 |
| commit | 1417dafa1db9cb1b2b09438aa9f53ea5ab6e36e2 (patch) | |
| tree | 57f4b1f313c8cf74eed8819870f39c36ea263c68 /flang/lib/Semantics/rewrite-parse-tree.cpp | |
| parent | 898b813bc8a6d0276bf0f4769f5f2f64b34e632d (diff) | |
| parent | b8cefcb601ddaa18482555c4ff363c01a270c2fe (diff) | |
Merge branch 'main' into users/mingmingl-llvm/samplefdo-profile-formatusers/mingmingl-llvm/samplefdo-profile-format
Diffstat (limited to 'flang/lib/Semantics/rewrite-parse-tree.cpp')
| -rw-r--r-- | flang/lib/Semantics/rewrite-parse-tree.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/flang/lib/Semantics/rewrite-parse-tree.cpp b/flang/lib/Semantics/rewrite-parse-tree.cpp index b3019762ead1..eae22dc257fa 100644 --- a/flang/lib/Semantics/rewrite-parse-tree.cpp +++ b/flang/lib/Semantics/rewrite-parse-tree.cpp @@ -80,9 +80,9 @@ public: bool Pre(parser::EndSubroutineStmt &) { return false; } bool Pre(parser::EndTypeStmt &) { return false; } - bool Pre(parser::OpenMPBlockConstruct &); + bool Pre(parser::OmpBlockConstruct &); bool Pre(parser::OpenMPLoopConstruct &); - void Post(parser::OpenMPBlockConstruct &); + void Post(parser::OmpBlockConstruct &); void Post(parser::OpenMPLoopConstruct &); private: @@ -187,7 +187,7 @@ void RewriteMutator::OpenMPSimdOnly( continue; } } - } else if (auto *ompBlock{std::get_if<parser::OpenMPBlockConstruct>( + } else if (auto *ompBlock{std::get_if<parser::OmpBlockConstruct>( &omp->value().u)}) { it = replaceInlineBlock(std::get<parser::Block>(ompBlock->t), it); continue; @@ -368,7 +368,7 @@ bool RewriteMutator::Pre(parser::Block &block) { void RewriteMutator::Post(parser::Block &block) { this->Pre(block); } -bool RewriteMutator::Pre(parser::OpenMPBlockConstruct &block) { +bool RewriteMutator::Pre(parser::OmpBlockConstruct &block) { if (context_.langOptions().OpenMPSimd) { auto &innerBlock = std::get<parser::Block>(block.t); OpenMPSimdOnly(innerBlock); @@ -376,7 +376,7 @@ bool RewriteMutator::Pre(parser::OpenMPBlockConstruct &block) { return true; } -void RewriteMutator::Post(parser::OpenMPBlockConstruct &block) { +void RewriteMutator::Post(parser::OmpBlockConstruct &block) { this->Pre(block); } |
