[all-commits] [llvm/llvm-project] 734b8e: Adjust `llvm_unreachable` macro to account for pla...

Mehdi Amini via All-commits all-commits at lists.llvm.org
Mon Mar 21 13:50:24 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 734b8eadd7d364d5d8162ba6f43539be3d7850aa
      https://github.com/llvm/llvm-project/commit/734b8eadd7d364d5d8162ba6f43539be3d7850aa
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2022-03-21 (Mon, 21 Mar 2022)

  Changed paths:
    M llvm/include/llvm/Support/ErrorHandling.h

  Log Message:
  -----------
  Adjust `llvm_unreachable` macro to account for platforms that don't define LLVM_BUILTIN_UNREACHABLE

Post 892c104fb7, LLVM_BUILTIN_UNREACHABLE may not be defined anymore.
Also when LLVM_UNREACHABLE_OPTIMIZE is OFF, emit LLVM_BUILTIN_UNREACHABLE
after LLVM_BUILTIN_TRAP to ensure that diagnostics are suppressed on
environments where LLVM_BUILTIN_TRAP is not marked as noreturn.

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




More information about the All-commits mailing list