Unverified Commit 62ece9ce authored by SiHuaN's avatar SiHuaN Committed by GitHub
Browse files

[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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment