[PATCH] D87535: [flang] Fix bug for forward referenced type

Peter Klausler via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 11 11:17:40 PDT 2020


klausler added inline comments.


================
Comment at: flang/lib/Semantics/symbol.cpp:544
   if (const auto *dtDetails{detailsIf<DerivedTypeDetails>()}) {
-    if (!scope) {
-      scope = scope_;
+    const Scope *localScope = scope ? scope : scope_;
+    if (localScope) {
----------------
if (const Scope *localScope{scope ? scope : scope_}) { return dtDetails->GetParentComponent(localScope); }


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D87535/new/

https://reviews.llvm.org/D87535



More information about the llvm-commits mailing list