OSDN Git Service

Move MSVC workarounds for future<Error>/future<Expected<T>> out of ORC and into
authorLang Hames <lhames@gmail.com>
Tue, 25 Sep 2018 19:48:44 +0000 (19:48 +0000)
committerLang Hames <lhames@gmail.com>
Tue, 25 Sep 2018 19:48:44 +0000 (19:48 +0000)
commit2096ec5b86b11fde2f16f38e50f3173c01223590
treed88a1d1bfbca6693e2018e1dbd22a826adfa3e96
parentb0c4f7e14ecb82fb629be0263c6bdf1001bf8737
Move MSVC workarounds for future<Error>/future<Expected<T>> out of ORC and into
a header in support.

MSVC's std::future implementation requires types to be default constructible,
but Error and Expected are not. This issue came up once before in ORC's
RPCUtils.h header and was worked around there but came up again in r342939, so
I am moving the workaround to Support to make it available to other clients.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@343011 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ExecutionEngine/Orc/RPCUtils.h
include/llvm/Support/MSVCErrorWorkarounds.h [new file with mode: 0644]