[all-commits] [llvm/llvm-project] e2d07f: [libc++] Mark libc++ deallocation helpers as noexc...

Louis Dionne via All-commits all-commits at lists.llvm.org
Thu Oct 17 13:16:36 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e2d07fc3d8737c08d351e841f82911a5c3ddf433
      https://github.com/llvm/llvm-project/commit/e2d07fc3d8737c08d351e841f82911a5c3ddf433
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2024-10-17 (Thu, 17 Oct 2024)

  Changed paths:
    M libcxx/include/new

  Log Message:
  -----------
  [libc++] Mark libc++ deallocation helpers as noexcept (#110884)

They already can't throw exceptions and they are called from noexcept
functions, but they were not marked as noexcept. Depending on compiler
inlining, this might not make a difference or this might improve the
codegen a bit by removing the implicit try-catch block that Clang
generates around non-noexcept functions called from noexcept functions.

The original issue also mentioned that one occurrence of
std::allocator::deallocate was missing noexcept, however it has since
then been removed.

Fixes #66100



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list