[PATCH] D116846: [MLIR] Fix compilation with LLVM_ENABLE_THREADS=OFF
John Demme via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 7 17:03:26 PST 2022
jdd created this revision.
Herald added subscribers: Chia-hungDuan, dexonsmith, rriddle, hiraditya.
jdd requested review of this revision.
Herald added subscribers: llvm-commits, stephenneuendorffer.
Herald added a project: LLVM.
Currently, compiles with LLVM_ENABLE_THREADS=OFF fail due to this symbol missing. Add it but assert as calling code is (and should be) checking that threading is enabled.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D116846
Files:
llvm/lib/Support/ThreadPool.cpp
Index: llvm/lib/Support/ThreadPool.cpp
===================================================================
--- llvm/lib/Support/ThreadPool.cpp
+++ llvm/lib/Support/ThreadPool.cpp
@@ -117,6 +117,10 @@
}
}
+bool ThreadPool::isWorkerThread() const {
+ assert(false && "LLVM compiled with threading disabled");
+}
+
ThreadPool::~ThreadPool() { wait(); }
#endif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116846.398277.patch
Type: text/x-patch
Size: 366 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220108/c63faa99/attachment.bin>
More information about the llvm-commits
mailing list