https://github.com/nikic requested changes to this pull request. As I have already explained to you, your code is not well-defined. There is nothing to fix in LLVM, you need to fix your code to use an atomic variable instead. https://github.com/llvm/llvm-project/pull/69413