[all-commits] [llvm/llvm-project] bfb04a: Unconditionally #include <future>

Geoffrey Martin-Noble via All-commits all-commits at lists.llvm.org
Fri Oct 23 12:18:05 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: bfb04aeb85b85cb49c7e630de979ef4d8de6e79a
      https://github.com/llvm/llvm-project/commit/bfb04aeb85b85cb49c7e630de979ef4d8de6e79a
  Author: Geoffrey Martin-Noble <gcmn at google.com>
  Date:   2020-10-23 (Fri, 23 Oct 2020)

  Changed paths:
    M llvm/lib/ExecutionEngine/Orc/Core.cpp

  Log Message:
  -----------
  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




More information about the All-commits mailing list