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

via flang-commits flang-commits at lists.llvm.org
Thu Oct 5 10:24:17 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:

`shallowLookupSymbol()` does not seem to be exposed to any interface we have access to while lowering. So I added this interface in AbstractConverter. I'll recheck once though.

And will modify `isPresentShallowLookup` is at all it needs to be there.

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


More information about the flang-commits mailing list