summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIlya Biryukov <ibiryukov@google.com>2017-12-13 13:43:47 +0000
committerIlya Biryukov <ibiryukov@google.com>2017-12-13 13:43:47 +0000
commita1d324d8b7c9f5ec864373fbe50f87732a2edefe (patch)
tree7a225f86f5e2f183780984370d9baf139234b1e7
parent5a85b8e6ddc13b48efdf0f9726188b1dfcbe6343 (diff)
downloadbcm5719-llvm-a1d324d8b7c9f5ec864373fbe50f87732a2edefe.tar.gz
bcm5719-llvm-a1d324d8b7c9f5ec864373fbe50f87732a2edefe.zip
[clangd] Try to workaround MSVC compilation failure.
llvm-svn: 320578
-rw-r--r--clang-tools-extra/clangd/Context.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang-tools-extra/clangd/Context.h b/clang-tools-extra/clangd/Context.h
index 33e946b6d63..c64780caf44 100644
--- a/clang-tools-extra/clangd/Context.h
+++ b/clang-tools-extra/clangd/Context.h
@@ -95,6 +95,11 @@ private:
Context(std::shared_ptr<const Data> DataPtr);
public:
+ /// Same as Context::empty(), please use Context::empty() instead.
+ /// Constructor is defined to workaround a bug in MSVC's version of STL.
+ /// (arguments of std::future<> must be default-construcitble in MSVC).
+ Context() = default;
+
/// Move-only.
Context(Context const &) = delete;
Context &operator=(const Context &) = delete;
OpenPOWER on IntegriCloud