LowLevelType: replace a reachable llvm_unreachable with assert
authorFangrui Song <i@maskray.me>
Fri, 18 Aug 2023 21:58:53 +0000 (14:58 -0700)
committerTobias Hieta <tobias@hieta.se>
Mon, 21 Aug 2023 08:05:59 +0000 (10:05 +0200)
commit5fe16ba0266e6f6cc10a5a13f2ad58500993cbf9
tree9615a9cbbc14e38bd3e2329ec6326c08845a6407
parent0c756c5906670fe5337812eeffdea7db02804f67
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.

(cherry picked from commit a7e20dd664bbce6e87b1fdad88d719e497902a42)
llvm/include/llvm/CodeGen/LowLevelType.h