| Index: src/new.cpp
|
| diff --git a/src/new.cpp b/src/new.cpp
|
| index f4f73d86803d38827ddb8ba97af6f3354a314fd5..88d7bbfb9d546c6c83ee7335c4da35048ef797e8 100644
|
| --- a/src/new.cpp
|
| +++ b/src/new.cpp
|
| @@ -31,6 +31,16 @@
|
| #endif // _LIBCPPABI_VERSION
|
| #endif
|
|
|
| +_LIBCPP_WEAK _LIBCPP_NEW_DELETE_VIS
|
| +void *
|
| +operator new(std::size_t size, std::new_tag)
|
| +#if !__has_feature(cxx_noexcept)
|
| + throw(std::bad_alloc)
|
| +#endif
|
| +{
|
| + return ::operator new(size);
|
| +}
|
| +
|
| #ifndef __GLIBCXX__
|
|
|
| // Implement all new and delete operators as weak definitions
|
|
|