[Support] Add a conditionally defined default constructor (available on MSVC
authorLang Hames <lhames@gmail.com>
Tue, 30 Aug 2016 05:32:41 +0000 (05:32 +0000)
committerLang Hames <lhames@gmail.com>
Tue, 30 Aug 2016 05:32:41 +0000 (05:32 +0000)
commit57bafedfafac38491f7402c45bd72a02a6a9d214
tree8bccbb96d18926a2033868dc98cd5f28a5ae0e7f
parent4bcf6b6de2ff922bf7c03a36d003cfd4dfd6fc1f
[Support] Add a conditionally defined default constructor (available on MSVC
only) for Expected<T> so that it can interoperate with MSVC's std::future
implementation.

MSVC 2013's std::future implementation requires the wrapped type to be default
constructible.

Hopefully this will fix the bot breakage in
http://lab.llvm.org:8011/builders/clang-x86-win2008-selfhost/builds/9937 .

llvm-svn: 280058
llvm/include/llvm/Support/Error.h