[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 18:21:34 PST 2022


This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rGd9547f410fce: [MLIR] Fix compilation with LLVM_ENABLE_THREADS=OFF (authored by jdd).

Changed prior to commit:
  https://reviews.llvm.org/D116846?vs=398277&id=398289#toc

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D116846/new/

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.398289.patch
Type: text/x-patch
Size: 368 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220108/21471f98/attachment.bin>


More information about the llvm-commits mailing list