[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
Cr-Mirrored-From: sso://chromium.googlesource.com/_direct/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: 3663f26fb338c72565c892b709da5aaba2e558d8
diff --git a/src/new.cpp b/src/new.cpp
index eb5ce75..4acb693 100644
--- a/src/new.cpp
+++ b/src/new.cpp
@@ -34,7 +34,7 @@
{
#ifndef __GLIBCXX__
-const nothrow_t nothrow = {};
+const nothrow_t nothrow{};
#endif
#ifndef LIBSTDCXX