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

via flang-commits flang-commits at lists.llvm.org
Mon Nov 6 10:01:25 PST 2023


================
@@ -585,6 +585,12 @@ class FirConverter : public Fortran::lower::AbstractConverter {
         std::nullopt);
   }
 
+  bool isPresentShallowLookup(Fortran::semantics::Symbol &sym) override final {
+    if (shallowLookupSymbol(sym))
----------------
shraiysh wrote:

nit: dont need the if condition - bool operator is overloaded in SymbolBox
```suggestion
    return bool(shallowLookupSymbol(sym));
```

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


More information about the flang-commits mailing list