[flang-commits] [flang] [flang][OpenMP] Leave local automatic variables alone (PR #178739)

Krzysztof Parzyszek via flang-commits flang-commits at lists.llvm.org
Wed Feb 4 05:19:09 PST 2026


================
@@ -409,6 +409,29 @@ class OmpAttributeVisitor : DirectiveAttributeVisitor<llvm::omp::Directive> {
   explicit OmpAttributeVisitor(SemanticsContext &context)
       : DirectiveAttributeVisitor(context) {}
 
+  static bool HasStaticStorageDuration(const Symbol &symbol) {
----------------
kparzysz wrote:

There is no technical reason for this.  This file contains code for OpenACC, OpenMP, and common code. I just wanted to avoid "polluting" the file scope with code used only in OpenMP.

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


More information about the flang-commits mailing list