[flang-commits] [flang] [flang] Diagnose the impure procedure reference in finalization according to the rank of the entity (PR #85475)
Peter Klausler via flang-commits
flang-commits at lists.llvm.org
Fri Mar 15 15:17:13 PDT 2024
================
@@ -220,8 +220,11 @@ class DoConcurrentBodyEnforce {
if (MightDeallocatePolymorphic(*entity, DeallocateNonCoarray)) {
SayDeallocateOfPolymorph(variable.GetSource(), *entity, reason);
}
- if (const Symbol * impure{HasImpureFinal(*entity)}) {
- SayDeallocateWithImpureFinal(*entity, reason, *impure);
+ if (const auto *assignment{GetAssignment(stmt)}) {
+ const auto lhs{assignment->lhs};
----------------
klausler wrote:
This should probably be a const reference `const auto &lhs{...}`.
https://github.com/llvm/llvm-project/pull/85475
More information about the flang-commits
mailing list