[llvm] bfb04ae - Unconditionally #include <future>
Mehdi Amini via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 23 12:17:52 PDT 2020
Author: Geoffrey Martin-Noble
Date: 2020-10-23T19:17:37Z
New Revision: bfb04aeb85b85cb49c7e630de979ef4d8de6e79a
URL: https://github.com/llvm/llvm-project/commit/bfb04aeb85b85cb49c7e630de979ef4d8de6e79a
DIFF: https://github.com/llvm/llvm-project/commit/bfb04aeb85b85cb49c7e630de979ef4d8de6e79a.diff
LOG: Unconditionally #include <future>
This unbreaks building with `LLVM_ENABLE_THREADS=0`. Since
https://github.com/llvm/llvm-project/commit/069919c9ba33 usage of
`std::promise` is not guarded by `LLVM_ENABLE_THREADS`, so this header
must be unconditionally included.
Reviewed By: lhames
Differential Revision: https://reviews.llvm.org/D89758
Added:
Modified:
llvm/lib/ExecutionEngine/Orc/Core.cpp
Removed:
################################################################################
diff --git a/llvm/lib/ExecutionEngine/Orc/Core.cpp b/llvm/lib/ExecutionEngine/Orc/Core.cpp
index 726cf101cb32..659dd9a1d3eb 100644
--- a/llvm/lib/ExecutionEngine/Orc/Core.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/Core.cpp
@@ -16,9 +16,7 @@
#include "llvm/Support/MSVCErrorWorkarounds.h"
#include <condition_variable>
-#if LLVM_ENABLE_THREADS
#include <future>
-#endif
#define DEBUG_TYPE "orc"
More information about the llvm-commits
mailing list