[flang-commits] [flang] [Flang][OpenMP] Fix for error in atomic read for different elements of the common symbol #80399 (PR #109265)
    chandan singh via flang-commits 
    flang-commits at lists.llvm.org
       
    Fri Sep 27 00:26:33 PDT 2024
    
    
  
================
@@ -1796,13 +1796,30 @@ inline void OmpStructureChecker::ErrIfLHSAndRHSSymbolsMatch(
   const auto *e{GetExpr(context_, expr)};
   const auto *v{GetExpr(context_, var)};
   if (e && v) {
-    auto vSyms{evaluate::GetSymbolVector(*v)};
-    const Symbol &varSymbol = vSyms.front();
+    const Symbol &varSymbol = evaluate::GetSymbolVector(*v).front();
----------------
chandankds wrote:
Reverted this unnecessary change and also confirmed front symbol of the SymbolVector is working as expected in this case.
https://github.com/llvm/llvm-project/pull/109265
    
    
More information about the flang-commits
mailing list