[flang-commits] [flang] [llvm] [Flang][OpenMP][Sema] Adding parsing and semantic support for scan directive. (PR #102792)

Anchu Rajendran S via flang-commits flang-commits at lists.llvm.org
Thu Aug 29 10:46:26 PDT 2024


================
@@ -1578,9 +1578,11 @@ bool OmpAttributeVisitor::Pre(
     const parser::OpenMPSimpleStandaloneConstruct &x) {
   const auto &standaloneDir{
       std::get<parser::OmpSimpleStandaloneDirective>(x.t)};
+  const auto &parentContext{GetContextIf()};
----------------
anchuraj wrote:

I saved the parentContext in a variable before the `scan`'s context was pushed @line 1591. 

https://github.com/llvm/llvm-project/pull/102792


More information about the flang-commits mailing list