summaryrefslogtreecommitdiff
path: root/llvm/lib/Support/ThreadPool.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2022-01-17 12:04:30 -0800
committerFangrui Song <i@maskray.me>2022-01-17 12:04:30 -0800
commite5c944b47cb8da5dbf93b31912f94d34ef4aa472 (patch)
tree91b0383cb6bf8e43252399117a548c25b498710e /llvm/lib/Support/ThreadPool.cpp
parent42bc3275d3687524ddc0d20c72722b9324f87be4 (diff)
[Support] Fix -Wreturn-type in LLVM_ENABLE_THREADS=OFF build after D116846
Diffstat (limited to 'llvm/lib/Support/ThreadPool.cpp')
-rw-r--r--llvm/lib/Support/ThreadPool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/ThreadPool.cpp b/llvm/lib/Support/ThreadPool.cpp
index e2bf9d7331e2..6eec368e626f 100644
--- a/llvm/lib/Support/ThreadPool.cpp
+++ b/llvm/lib/Support/ThreadPool.cpp
@@ -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(); }