[MLIR] Fix compilation with LLVM_ENABLE_THREADS=OFF

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.

Differential Revision: https://reviews.llvm.org/D116846
This commit is contained in:
John Demme 2022-01-08 01:56:57 +00:00
parent 45adf60802
commit d9547f410f
1 changed files with 4 additions and 0 deletions

View File

@ -117,6 +117,10 @@ void ThreadPool::wait() {
}
}
bool ThreadPool::isWorkerThread() const {
assert(false && "LLVM compiled with threading disabled");
}
ThreadPool::~ThreadPool() { wait(); }
#endif