[llvm] e5c944b - [Support] Fix -Wreturn-type in LLVM_ENABLE_THREADS=OFF build after D116846
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 17 12:04:38 PST 2022
Author: Fangrui Song
Date: 2022-01-17T12:04:30-08:00
New Revision: e5c944b47cb8da5dbf93b31912f94d34ef4aa472
URL: https://github.com/llvm/llvm-project/commit/e5c944b47cb8da5dbf93b31912f94d34ef4aa472
DIFF: https://github.com/llvm/llvm-project/commit/e5c944b47cb8da5dbf93b31912f94d34ef4aa472.diff
LOG: [Support] Fix -Wreturn-type in LLVM_ENABLE_THREADS=OFF build after D116846
Added:
Modified:
llvm/lib/Support/ThreadPool.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Support/ThreadPool.cpp b/llvm/lib/Support/ThreadPool.cpp
index e2bf9d7331e2a..6eec368e626ff 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(); }
More information about the llvm-commits
mailing list