[flang-commits] [PATCH] D124541: [flang] Allow for host association in ConvertTo(Object|Proc)Entity

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Wed Apr 27 12:30:18 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rG787ee99d4fd9: [flang] Allow for host association in ConvertTo(Object|Proc)Entity (authored by klausler).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D124541

Files:
  flang/lib/Semantics/resolve-names.cpp


Index: flang/lib/Semantics/resolve-names.cpp
===================================================================
--- flang/lib/Semantics/resolve-names.cpp
+++ flang/lib/Semantics/resolve-names.cpp
@@ -2423,6 +2423,8 @@
     symbol.set_details(ObjectEntityDetails{std::move(*details)});
   } else if (auto *useDetails{symbol.detailsIf<UseDetails>()}) {
     return useDetails->symbol().has<ObjectEntityDetails>();
+  } else if (auto *hostDetails{symbol.detailsIf<HostAssocDetails>()}) {
+    return hostDetails->symbol().has<ObjectEntityDetails>();
   } else {
     return false;
   }
@@ -2441,6 +2443,10 @@
       CHECK(!symbol.test(Symbol::Flag::Subroutine));
       symbol.set(Symbol::Flag::Function);
     }
+  } else if (auto *useDetails{symbol.detailsIf<UseDetails>()}) {
+    return useDetails->symbol().has<ProcEntityDetails>();
+  } else if (auto *hostDetails{symbol.detailsIf<HostAssocDetails>()}) {
+    return hostDetails->symbol().has<ProcEntityDetails>();
   } else {
     return false;
   }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124541.425589.patch
Type: text/x-patch
Size: 1005 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220427/ba0ca0a5/attachment.bin>


More information about the flang-commits mailing list