Skip to content

Commit 5569917

Browse files
committed
fixing random edit
1 parent d0f21ea commit 5569917

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

flang/docs/ImplementingASemanticCheck.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ to make sure that the names were clear. Here's what I ended up with:
775775

776776
```C++
777777
void DoChecker::Leave(const parser::Expr &parsedExpr) {
778-
ActualArgumentSet argSet{CollectActualArguments((parsedExpr))};
778+
ActualArgumentSet argSet{CollectActualArguments(GetExpr(parsedExpr))};
779779
for (const evaluate::ActualArgumentRef &argRef : argSet) {
780780
if (const SomeExpr * argExpr{argRef->UnwrapExpr()}) {
781781
if (const Symbol * var{evaluate::UnwrapWholeSymbolDataRef(*argExpr)}) {

flang/lib/Evaluate/variable.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -811,6 +811,11 @@ bool Designator<T>::IsPathFrom(const Designator<T> &that) const {
811811
return TestVariableIsPathFromRoot(*this, that);
812812
}
813813

814+
template <typename T, typename U>
815+
optional<bool> Designator<T>::IsSameEntity(const Designator<U> &that) const {
816+
return std::nullopt;
817+
}
818+
814819
#ifdef _MSC_VER // disable bogus warning about missing definitions
815820
#pragma warning(disable : 4661)
816821
#endif

0 commit comments

Comments
 (0)