[flang-commits] [flang] [flang][runtime] Ensure that the anonymous unit returned by LookUpOrCreateAnonymous has been opened. (PR #74468)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Tue Dec 5 06:09:17 PST 2023


================
@@ -20,6 +20,7 @@ namespace Fortran::runtime::io {
 // The per-unit data structures are created on demand so that Fortran I/O
 // should work without a Fortran main program.
 static Lock unitMapLock;
+static Lock createOpenLock;
----------------
klausler wrote:

This lock can be declared static in the only function that uses it.

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


More information about the flang-commits mailing list