[flang-commits] [flang] [Flang][OpenMP] Do not default privatize symbols that are not variables (PR #117886)

Kiran Chandramohan via flang-commits flang-commits at lists.llvm.org
Thu Nov 28 04:37:15 PST 2024


================
@@ -2112,7 +2112,7 @@ void OmpAttributeVisitor::Post(const parser::OpenMPAllocatorsConstruct &x) {
 
 static bool IsPrivatizable(const Symbol *sym) {
   auto *misc{sym->detailsIf<MiscDetails>()};
-  return !IsProcedure(*sym) && !IsNamedConstant(*sym) &&
+  return IsVariableName(*sym) && !IsProcedure(*sym) && !IsNamedConstant(*sym) &&
----------------
kiranchandramohan wrote:

I will update in a separate patch.

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


More information about the flang-commits mailing list