Skip to content

Commit 5459cff

Browse files
Only left IsAlternateEntry() with pointer arg
1 parent 62561c2 commit 5459cff

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

flang/include/flang/Evaluate/tools.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1536,9 +1536,6 @@ inline bool IsAlternateEntry(const Symbol *symbol) {
15361536
// symbol.
15371537
return symbol && GetMainEntry(symbol) != symbol;
15381538
}
1539-
inline bool IsAlternateEntry(const Symbol &symbol) {
1540-
return IsAlternateEntry(&symbol);
1541-
}
15421539

15431540
// These functions are used in Evaluate so they are defined here rather than in
15441541
// Semantics to avoid a link-time dependency on Semantics.

flang/lib/Semantics/check-declarations.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2950,7 +2950,7 @@ static bool IsSubprogramDefinition(const Symbol &symbol) {
29502950

29512951
static bool IsExternalProcedureDefinition(const Symbol &symbol) {
29522952
return IsBlockData(symbol) ||
2953-
((IsSubprogramDefinition(symbol) || IsAlternateEntry(symbol)) &&
2953+
((IsSubprogramDefinition(symbol) || IsAlternateEntry(&symbol)) &&
29542954
(IsExternal(symbol) || symbol.GetBindName()));
29552955
}
29562956

0 commit comments

Comments
 (0)