[all-commits] [llvm/llvm-project] 485b90: [libc++] Mark __u64toa and __u32toa as noexcept

Louis Dionne via All-commits all-commits at lists.llvm.org
Fri May 22 13:12:12 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 485b9083fe69601c9f3f91f7f1be9d7f3a26bb1e
      https://github.com/llvm/llvm-project/commit/485b9083fe69601c9f3f91f7f1be9d7f3a26bb1e
  Author: Louis Dionne <ldionne at apple.com>
  Date:   2020-05-22 (Fri, 22 May 2020)

  Changed paths:
    M libcxx/include/charconv
    M libcxx/src/charconv.cpp

  Log Message:
  -----------
  [libc++] Mark __u64toa and __u32toa as noexcept

The two functions don't throw, and the generated code is better when
we explicitly tell the compiler that the functions are noexcept. This
isn't an ABI break because the signatures of the functions stay the
same with or without noexcept.

Fixes https://llvm.org/PR46016

Differential Revision: https://reviews.llvm.org/D80379




More information about the All-commits mailing list