[all-commits] [llvm/llvm-project] 429d62: [Headers] Don't declare unreachable() from stddef....

Ian Anderson via All-commits all-commits at lists.llvm.org
Wed Apr 10 15:00:02 PDT 2024


  Branch: refs/heads/release/18.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 429d62872525e0ad7556e0258236911b4b3624ae
      https://github.com/llvm/llvm-project/commit/429d62872525e0ad7556e0258236911b4b3624ae
  Author: Ian Anderson <iana at apple.com>
  Date:   2024-04-10 (Wed, 10 Apr 2024)

  Changed paths:
    M clang/lib/Headers/__stddef_unreachable.h

  Log Message:
  -----------
  [Headers] Don't declare unreachable() from stddef.h in C++ (#86748)

Even if __need_unreachable is set, stddef.h should not declare
unreachable() in C++ because it conflicts with the declaration in
\<utility>.

(cherry picked from commit df69a305253f1d1b4a4066055a07101a4cc03e55)



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