diff options
| author | Fangrui Song <i@maskray.me> | 2022-01-17 12:04:30 -0800 |
|---|---|---|
| committer | Fangrui Song <i@maskray.me> | 2022-01-17 12:04:30 -0800 |
| commit | e5c944b47cb8da5dbf93b31912f94d34ef4aa472 (patch) | |
| tree | 91b0383cb6bf8e43252399117a548c25b498710e /llvm/lib/Support/ThreadPool.cpp | |
| parent | 42bc3275d3687524ddc0d20c72722b9324f87be4 (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.cpp | 2 |
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(); } |
