https://bugs.winehq.org/show_bug.cgi?id=50993
--- Comment #9 from Nikolay Sivov bunglehead@gmail.com --- (In reply to Ralf Habacker from comment #8)
Reported upstream at https://github.com/mstorsjo/llvm-mingw/issues/195
Could you try to get these changes in compiler-rt? llvm-mingw will then pull from it, but it's not right to patch downstream project.