[PATCH] D89758: Unconditionally #include <future>

Geoffrey Martin-Noble via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 19 19:09:16 PDT 2020


GMNGeoffrey created this revision.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
GMNGeoffrey requested review of this revision.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D89758

Files:
  llvm/lib/ExecutionEngine/Orc/Core.cpp


Index: llvm/lib/ExecutionEngine/Orc/Core.cpp
===================================================================
--- llvm/lib/ExecutionEngine/Orc/Core.cpp
+++ 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"
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89758.299241.patch
Type: text/x-patch
Size: 378 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201020/427da991/attachment.bin>


More information about the llvm-commits mailing list