[PATCH] D96066: [flang][msvc] Reapply "Explicitly reference "this" inside closure"

Michael Kruse via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 4 14:34:09 PST 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rGbdb40dd14e84: [flang][msvc] Reapply "Explicitly reference "this" inside closure" (authored by ChinouneMehdi, committed by Meinersbur).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D96066/new/

https://reviews.llvm.org/D96066

Files:
  flang/lib/Semantics/symbol.cpp


Index: flang/lib/Semantics/symbol.cpp
===================================================================
--- flang/lib/Semantics/symbol.cpp
+++ flang/lib/Semantics/symbol.cpp
@@ -258,11 +258,11 @@
               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; },


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96066.321567.patch
Type: text/x-patch
Size: 845 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210204/3267542f/attachment.bin>


More information about the llvm-commits mailing list