HomePhabricator

[libc++] Explicitly initialize std::nothrow

Authored by thomasanderson on Jan 30 2019, 11:09 AM.

Description

[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

Details