[flang-commits] [PATCH] D144129: [flang] Don't add a source range to a type instantiation's scope
Peter Klausler via Phabricator via flang-commits
flang-commits at lists.llvm.org
Wed Feb 15 12:05:36 PST 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rGee437afa912b: [flang] Don't add a source range to a type instantiation's scope (authored by klausler).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144129/new/
https://reviews.llvm.org/D144129
Files:
flang/lib/Semantics/type.cpp
Index: flang/lib/Semantics/type.cpp
===================================================================
--- flang/lib/Semantics/type.cpp
+++ flang/lib/Semantics/type.cpp
@@ -368,7 +368,6 @@
}
// Instantiate every non-parameter symbol from the original derived
// type's scope into the new instance.
- newScope.AddSourceRange(typeScope.sourceRange());
auto restorer2{foldingContext.messages().SetContext(contextMessage)};
if (PlumbPDTInstantiationDepth(&containingScope) > 100) {
foldingContext.messages().Say(
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144129.497768.patch
Type: text/x-patch
Size: 531 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230215/af29b9b8/attachment-0001.bin>
More information about the flang-commits
mailing list