[flang][runtime] Add a critical section for LookUpOrCreateAnonymous. (#74468)
In parallel regions `LookUpOrCreateAnonymous` may return an anonymous unit that has not yet been opened, which may cause a runtime error. This commit ensures that the returned anonymous unit has been opened. For details see: https://github.com/llvm/llvm-project/issues/68856#issuecomment-1788632511 Fixes https://github.com/llvm/llvm-project/issues/68856
parent
9fa34555
Please register or sign in to comment