diff options
Diffstat (limited to 'flang/lib/Parser/parse-tree.cpp')
-rw-r--r-- | flang/lib/Parser/parse-tree.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/flang/lib/Parser/parse-tree.cpp b/flang/lib/Parser/parse-tree.cpp index 7b46c9f4..cb30939 100644 --- a/flang/lib/Parser/parse-tree.cpp +++ b/flang/lib/Parser/parse-tree.cpp @@ -322,7 +322,7 @@ std::string OmpTraitSetSelectorName::ToString() const { } llvm::omp::Clause OpenMPAtomicConstruct::GetKind() const { - auto &dirSpec{std::get<OmpDirectiveSpecification>(t)}; + const OmpDirectiveSpecification &dirSpec{std::get<OmpBeginDirective>(t)}; for (auto &clause : dirSpec.Clauses().v) { switch (clause.Id()) { case llvm::omp::Clause::OMPC_read: @@ -337,14 +337,14 @@ llvm::omp::Clause OpenMPAtomicConstruct::GetKind() const { } bool OpenMPAtomicConstruct::IsCapture() const { - auto &dirSpec{std::get<OmpDirectiveSpecification>(t)}; + const OmpDirectiveSpecification &dirSpec{std::get<OmpBeginDirective>(t)}; return llvm::any_of(dirSpec.Clauses().v, [](auto &clause) { return clause.Id() == llvm::omp::Clause::OMPC_capture; }); } bool OpenMPAtomicConstruct::IsCompare() const { - auto &dirSpec{std::get<OmpDirectiveSpecification>(t)}; + const OmpDirectiveSpecification &dirSpec{std::get<OmpBeginDirective>(t)}; return llvm::any_of(dirSpec.Clauses().v, [](auto &clause) { return clause.Id() == llvm::omp::Clause::OMPC_compare; }); |