[PATCH] D94567: [flang] Do not create HostAssoc symbols in derived type scopes
Peter Klausler via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 13 11:02:47 PST 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG166e5c335cbe: [flang] Do not create HostAssoc symbols in derived type scopes (authored by klausler).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D94567/new/
https://reviews.llvm.org/D94567
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
@@ -2050,7 +2050,9 @@
}
Symbol &ScopeHandler::MakeHostAssocSymbol(
const parser::Name &name, const Symbol &hostSymbol) {
- Symbol &symbol{MakeSymbol(name, HostAssocDetails{hostSymbol})};
+ Symbol &symbol{*NonDerivedTypeScope()
+ .try_emplace(name.source, HostAssocDetails{hostSymbol})
+ .first->second};
name.symbol = &symbol;
symbol.attrs() = hostSymbol.attrs(); // TODO: except PRIVATE, PUBLIC?
symbol.flags() = hostSymbol.flags();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94567.316454.patch
Type: text/x-patch
Size: 691 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210113/94f3fae9/attachment.bin>
More information about the llvm-commits
mailing list