ilya-biryukov added a comment. This change is a bit ugly since it has to account for the value of LLVM_ENABLE_THREADS... Happy to accept suggestions/alternative ways to fix this :-) Repository: rL LLVM https://reviews.llvm.org/D50080