summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Anderson <thomasanderson@google.com>2019-01-30 19:09:41 +0000
committerThomas Anderson <thomasanderson@google.com>2019-01-30 19:09:41 +0000
commit3663f26fb338c72565c892b709da5aaba2e558d8 (patch)
tree23256d5ee68901d2cf17fb49fc912c1b28520169
parent13447450bc5330ed245c7f60c0555283784bf4cb (diff)
downloadbcm5719-llvm-3663f26fb338c72565c892b709da5aaba2e558d8.tar.gz
bcm5719-llvm-3663f26fb338c72565c892b709da5aaba2e558d8.zip
[libc++] Explicitly initialize std::nothrow
When building on Windows without libc++abi, this change fixes a build error of the form: src/new.cpp(38,17): error: chosen constructor is explicit in copy-initialization const nothrow_t nothrow = {}; include/vcruntime_new.h(53,22): note: explicit constructor declared here explicit nothrow_t() = default; Differential Revision: https://reviews.llvm.org/D57351 llvm-svn: 352648
-rw-r--r--libcxx/src/new.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/src/new.cpp b/libcxx/src/new.cpp
index eb5ce75f160..4acb69391e0 100644
--- a/libcxx/src/new.cpp
+++ b/libcxx/src/new.cpp
@@ -34,7 +34,7 @@ namespace std
{
#ifndef __GLIBCXX__
-const nothrow_t nothrow = {};
+const nothrow_t nothrow{};
#endif
#ifndef LIBSTDCXX
OpenPOWER on IntegriCloud