[flang-commits] [flang] bdb40dd - [flang][msvc] Reapply "Explicitly reference "this" inside closure"
Michael Kruse via flang-commits
flang-commits at lists.llvm.org
Thu Feb 4 14:34:01 PST 2021
Author: Mehdi Chinoune
Date: 2021-02-04T16:33:51-06:00
New Revision: bdb40dd14e84efb27e0c416c64721e8390b854e3
URL: https://github.com/llvm/llvm-project/commit/bdb40dd14e84efb27e0c416c64721e8390b854e3
DIFF: https://github.com/llvm/llvm-project/commit/bdb40dd14e84efb27e0c416c64721e8390b854e3.diff
LOG: [flang][msvc] Reapply "Explicitly reference "this" inside closure"
Reapply {D88052}
Reviewed By: Meinersbur
Differential Revision: https://reviews.llvm.org/D96066
Added:
Modified:
flang/lib/Semantics/symbol.cpp
Removed:
################################################################################
diff --git a/flang/lib/Semantics/symbol.cpp b/flang/lib/Semantics/symbol.cpp
index 656c993935cd..edd2c84218c1 100644
--- a/flang/lib/Semantics/symbol.cpp
+++ b/flang/lib/Semantics/symbol.cpp
@@ -258,11 +258,11 @@ bool Symbol::CanReplaceDetails(const Details &details) const {
return has<SubprogramNameDetails>() || has<EntityDetails>();
},
[&](const DerivedTypeDetails &) {
- const auto *derived{detailsIf<DerivedTypeDetails>()};
+ const auto *derived{this->detailsIf<DerivedTypeDetails>()};
return derived && derived->isForwardReferenced();
},
[&](const UseDetails &x) {
- const auto *use{detailsIf<UseDetails>()};
+ const auto *use{this->detailsIf<UseDetails>()};
return use && use->symbol() == x.symbol();
},
[](const auto &) { return false; },
More information about the flang-commits
mailing list