[flang-commits] [clang] [flang] [Flang] Optionally turn module checksum check into warning (PR #219181)

Michael Kruse via flang-commits flang-commits at lists.llvm.org
Fri Aug 28 05:18:57 PDT 2026


================
@@ -1744,6 +1744,28 @@ Scope *ModFileReader::Read(SourceName name, std::optional<bool> isIntrinsic,
     return nullptr;
   }
   CHECK(sourceFile);
+
+  if (!isIntrinsic.has_value()) {
+    for (const auto &dir : context_.intrinsicModuleDirectories()) {
+      if (sourceFile->path().size() > dir.size() &&
----------------
Meinersbur wrote:

This code has just been moved from below. I can update it of course, but by default I leave it unchanged to not risk unintended behavioral changes.

https://github.com/llvm/llvm-project/pull/219181


More information about the flang-commits mailing list