[all-commits] [llvm/llvm-project] a7e20d: LowLevelType: replace a reachable llvm_unreachable...

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri Aug 18 14:59:07 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a7e20dd664bbce6e87b1fdad88d719e497902a42
      https://github.com/llvm/llvm-project/commit/a7e20dd664bbce6e87b1fdad88d719e497902a42
  Author: Fangrui Song <i at maskray.me>
  Date:   2023-08-18 (Fri, 18 Aug 2023)

  Changed paths:
    M llvm/include/llvm/CodeGen/LowLevelType.h

  Log Message:
  -----------
  LowLevelType: replace a reachable llvm_unreachable with assert

assert is more appropriate here and fixes
`runtime error: execution reached an unreachable program point` in a
-DLLVM_USE_SANITIZER=Undefined build (-fno-sanitize-recover=all causes
llc to exit instead of crash (report_fatal_error)) when testing
MachineVerifier/test_g_assert_[sz]ext.mir.




More information about the All-commits mailing list