[flang-commits] [flang] [flang][do concurrent] Re-model `reduce` to match reductions are modelled in OpenMP and OpenACC (PR #145837)

Kareem Ergawy via flang-commits flang-commits at lists.llvm.org
Thu Jun 26 08:23:10 PDT 2025


================
@@ -668,9 +668,7 @@ void privatizeSymbol(
 
   const semantics::Symbol *sym =
       isDoConcurrent ? &symToPrivatize->GetUltimate() : symToPrivatize;
-  const lower::SymbolBox hsb = isDoConcurrent
-                                   ? converter.shallowLookupSymbol(*sym)
-                                   : converter.lookupOneLevelUpSymbol(*sym);
+  const lower::SymbolBox hsb = converter.lookupOneLevelUpSymbol(*sym);
----------------
ergawy wrote:

Yes, the scope enables us to get rid of this.

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


More information about the flang-commits mailing list