huihuiz added a comment. This issue was exposed when linking with ThinLTO+lld, using a compiler built with thread sanitizer enabled. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D73587/new/ https://reviews.llvm.org/D73587