[PATCH] D116846: [MLIR] Fix compilation with LLVM_ENABLE_THREADS=OFF

Duncan P. N. Exon Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 10 18:43:24 PST 2022


dexonsmith added inline comments.


================
Comment at: llvm/lib/Support/ThreadPool.cpp:121
+bool ThreadPool::isWorkerThread() const {
+  assert(false && "LLVM compiled with threading disabled");
+}
----------------
Perhaps `llvm::report_fatal_error()` would be appropriate here.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D116846



More information about the llvm-commits mailing list