[Support] Fix -Wreturn-type in LLVM_ENABLE_THREADS=OFF build after D116846

This commit is contained in:
Fangrui Song 2022-01-17 12:04:30 -08:00
parent 42bc3275d3
commit e5c944b47c
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ void ThreadPool::wait() {
} }
bool ThreadPool::isWorkerThread() const { bool ThreadPool::isWorkerThread() const {
assert(false && "LLVM compiled with threading disabled"); report_fatal_error("LLVM compiled without multithreading");
} }
ThreadPool::~ThreadPool() { wait(); } ThreadPool::~ThreadPool() { wait(); }