Skip to content

Commit 82582e6

Browse files
committed
GetShape for variables loaded from modules
1 parent 0b79c37 commit 82582e6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

flang/lib/Semantics/symbol.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,8 @@ bool Symbol::IsFuncResult() const {
453453
const ArraySpec *Symbol::GetShape() const {
454454
if (const auto *details{std::get_if<ObjectEntityDetails>(&details_)}) {
455455
return &details->shape();
456+
} else if (const auto *details{std::get_if<UseDetails>(&details_)}) {
457+
return details->symbol().GetShape();
456458
} else {
457459
return nullptr;
458460
}

0 commit comments

Comments
 (0)