[flang-commits] [PATCH] D127011: [flang] Fix crash in IsSaved()

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Fri Jun 3 17:00:24 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rG66a871b973c5: [flang] Fix crash in IsSaved() (authored by klausler).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D127011

Files:
  flang/lib/Evaluate/tools.cpp


Index: flang/lib/Evaluate/tools.cpp
===================================================================
--- flang/lib/Evaluate/tools.cpp
+++ flang/lib/Evaluate/tools.cpp
@@ -1380,7 +1380,7 @@
   } else if (const auto *object{symbol.detailsIf<ObjectEntityDetails>()};
              object && object->init()) {
     return true;
-  } else if (IsProcedurePointer(symbol) &&
+  } else if (IsProcedurePointer(symbol) && symbol.has<ProcEntityDetails>() &&
       symbol.get<ProcEntityDetails>().init()) {
     return true;
   } else if (scope.hasSAVE()) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127011.434208.patch
Type: text/x-patch
Size: 550 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220604/df7dacf1/attachment.bin>


More information about the flang-commits mailing list