[libcxx-commits] [PATCH] D150610: [libc++] Fix the behavior of throwing `operator new` under -fno-exceptions

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jun 21 07:02:01 PDT 2023


ldionne updated this revision to Diff 533245.
ldionne retitled this revision from "[libc++] Make sure `operator new` never returns nullptr, even under -fno-exceptions" to "[libc++] Fix the behavior of throwing `operator new` under -fno-exceptions".
ldionne edited the summary of this revision.
ldionne added a comment.

Update with new approach that detects whether `operator new` has been overridden or not. This is a WIP for comments only.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D150610/new/

https://reviews.llvm.org/D150610

Files:
  libcxx/include/CMakeLists.txt
  libcxx/include/__overridable_function
  libcxx/include/new
  libcxx/src/new.cpp
  libcxx/test/libcxx/language.support/support.dynamic/new_dont_return_nullptr.pass.cpp
  libcxxabi/src/stdlib_new_delete.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150610.533245.patch
Type: text/x-patch
Size: 19459 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230621/20047f3f/attachment-0001.bin>


More information about the libcxx-commits mailing list