diff options
| -rw-r--r-- | llvm/include/llvm/Support/ThreadPool.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/include/llvm/Support/ThreadPool.h b/llvm/include/llvm/Support/ThreadPool.h index 56265499c3e..16f287e701d 100644 --- a/llvm/include/llvm/Support/ThreadPool.h +++ b/llvm/include/llvm/Support/ThreadPool.h @@ -24,6 +24,12 @@ #include <queue> #include <utility> +#ifdef _MSC_VER +// concrt.h depends on eh.h for __uncaught_exception declaration +// even if we disable exceptions. +#include <eh.h> +#endif + namespace llvm { /// A ThreadPool for asynchronous parallel execution on a defined number of |

