[flang-commits] [flang] [flang][OpenMP] Fix common block missing symbol crash (PR #67330)

via flang-commits flang-commits at lists.llvm.org
Sun Oct 22 22:26:57 PDT 2023


================
@@ -588,6 +588,13 @@ class FirConverter : public Fortran::lower::AbstractConverter {
         std::nullopt);
   }
 
+  bool isPresentShallowLookup(Fortran::semantics::Symbol &sym) override final {
+    Fortran::lower::SymbolBox sb = shallowLookupSymbol(sym);
+    if (shallowLookupSymbol(sym))
----------------
NimishMishra wrote:

@shraiysh I checked this. `shallowLookupSymbol` is operating upon a symbol map `localSymbols` defined and maintained in `Bridge.cpp`. So in any case, we need to allow an interface to access the same during lowering OpenMP clauses.

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


More information about the flang-commits mailing list