[all-commits] [llvm/llvm-project] 5f11d3: [flang] Fix code that deletes unit from bad OPEN (...

Peter Klausler via All-commits all-commits at lists.llvm.org
Wed Sep 18 12:19:40 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5f11d38d019b8447a3f76c978a5beae4639015de
      https://github.com/llvm/llvm-project/commit/5f11d38d019b8447a3f76c978a5beae4639015de
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2024-09-18 (Wed, 18 Sep 2024)

  Changed paths:
    M flang/runtime/io-api.cpp
    M flang/runtime/io-stmt.cpp

  Log Message:
  -----------
  [flang] Fix code that deletes unit from bad OPEN (#108994)

When an OPEN statement fails, a unit that was created for the OPEN needs
to be removed from the unit map. The code that tried to do this was
incorrect -- it needs to re-acquire the unit via LookUpForClose as a
CLOSE statement does. (The failure to do this completely was leaving a
zombie unit active that could break a later OPEN on the same unit
number.)



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list