[libcxx-commits] [PATCH] D131619: [libc++] Use __verbose_abort in additional contexts

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Aug 10 14:25:03 PDT 2022


ldionne created this revision.
Herald added a subscriber: smeenai.
Herald added a project: All.
ldionne requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

Instead of only using __verbose_abort to handle assertions, also use
it to handle exceptions thrown under -fno-exceptions and when
std::unreachable() is called. This will provide a strictly better
user experience in these cases, since we will provide additional
information in the logs over a simple std::abort().


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D131619

Files:
  libcxx/include/__assert
  libcxx/include/__filesystem/filesystem_error.h
  libcxx/include/__functional/function.h
  libcxx/include/__memory/shared_ptr.h
  libcxx/include/__utility/unreachable.h
  libcxx/include/__verbose_abort
  libcxx/include/any
  libcxx/include/future
  libcxx/include/ios
  libcxx/include/new
  libcxx/include/optional
  libcxx/include/regex
  libcxx/include/stdexcept
  libcxx/include/typeinfo
  libcxx/include/variant
  libcxx/src/locale.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131619.451630.patch
Type: text/x-patch
Size: 9139 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220810/a790905f/attachment-0001.bin>


More information about the libcxx-commits mailing list