mirror of
https://github.com/intel/llvm.git
synced 2026-02-05 22:17:23 +08:00
[flang] Take into account SubprogramDetails in GetInterfaceSymbol
When the ProcRef is Symbol is a SubprogramDetails, the interface is the SubprogramDetails. Do not return nullptr. Differential Revision: https://reviews.llvm.org/D110853
This commit is contained in:
@@ -123,6 +123,8 @@ const Symbol *ProcedureDesignator::GetInterfaceSymbol() const {
|
||||
} else if (const auto *binding{
|
||||
ultimate.detailsIf<semantics::ProcBindingDetails>()}) {
|
||||
return &binding->symbol();
|
||||
} else if (ultimate.has<semantics::SubprogramDetails>()) {
|
||||
return &ultimate;
|
||||
}
|
||||
}
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user