Skip to content

Commit

Permalink
[Support] Fix -Wreturn-type in LLVM_ENABLE_THREADS=OFF build after D1…
Browse files Browse the repository at this point in the history
…16846
  • Loading branch information
MaskRay committed Jan 17, 2022
1 parent 42bc327 commit e5c944b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Support/ThreadPool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ void ThreadPool::wait() {
}

bool ThreadPool::isWorkerThread() const {
assert(false && "LLVM compiled with threading disabled");
report_fatal_error("LLVM compiled without multithreading");
}

ThreadPool::~ThreadPool() { wait(); }
Expand Down

0 comments on commit e5c944b

Please sign in to comment.