[all-commits] [llvm/llvm-project] 7b9839: Add a cmake flag to turn `llvm_unreachable()` into...

Mehdi Amini via All-commits all-commits at lists.llvm.org
Fri Mar 18 12:24:39 PDT 2022


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

  Changed paths:
    M llvm/CMakeLists.txt
    M llvm/docs/CMake.rst
    M llvm/include/llvm/Config/llvm-config.h.cmake
    M llvm/include/llvm/Support/ErrorHandling.h

  Log Message:
  -----------
  Add a cmake flag to turn `llvm_unreachable()` into builtin_trap() when assertions are disabled

This re-lands 6316129e066e after fixing the condition logic.

The new flag seems to not be working yet on Windows, where the builtin
trap isn't "no return".

Reviewed By: dexonsmith

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




More information about the All-commits mailing list