[flang-commits] [flang] cc02e50 - Revert "[Flang] Update the fix of PR 80738 to cover generic interface… (#81321)
via flang-commits
flang-commits at lists.llvm.org
Fri Feb 9 18:04:57 PST 2024
Author: Pete Steinfeld
Date: 2024-02-09T18:04:53-08:00
New Revision: cc02e50e77419475fa958b2626600a48f8208098
URL: https://github.com/llvm/llvm-project/commit/cc02e50e77419475fa958b2626600a48f8208098
DIFF: https://github.com/llvm/llvm-project/commit/cc02e50e77419475fa958b2626600a48f8208098.diff
LOG: Revert "[Flang] Update the fix of PR 80738 to cover generic interface… (#81321)
… inside modules (#81087)"
This reverts commit 0802596df3d1ffd15f6b828a0f5c1e5b687a730f.
See comments in PR #81087 for a test case that shows why I'm reverting.
Added:
Modified:
flang/lib/Semantics/resolve-names.cpp
Removed:
################################################################################
diff --git a/flang/lib/Semantics/resolve-names.cpp b/flang/lib/Semantics/resolve-names.cpp
index 2a42c79161468a..36deab969456d0 100644
--- a/flang/lib/Semantics/resolve-names.cpp
+++ b/flang/lib/Semantics/resolve-names.cpp
@@ -5648,10 +5648,9 @@ void DeclarationVisitor::Post(const parser::ProcDecl &x) {
const auto &name{std::get<parser::Name>(x.t)};
const Symbol *procInterface{nullptr};
if (interfaceName_) {
- Symbol *ultimate{&interfaceName_->symbol->GetUltimate()};
- procInterface = ultimate->has<GenericDetails>()
- ? ultimate->get<GenericDetails>().specific()
- : ultimate;
+ procInterface = interfaceName_->symbol->has<GenericDetails>()
+ ? interfaceName_->symbol->get<GenericDetails>().specific()
+ : interfaceName_->symbol;
}
auto attrs{HandleSaveName(name.source, GetAttrs())};
DerivedTypeDetails *dtDetails{nullptr};
More information about the flang-commits
mailing list