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

Sergio Afonso via flang-commits flang-commits at lists.llvm.org
Thu Aug 29 03:38:43 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()};
----------------
skatrak wrote:

Nit: Since it's not used anywhere else, why not move this definition to the `if` body where it will be used?

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


More information about the flang-commits mailing list