summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorMehdi Amini <joker.eph@gmail.com>2022-03-21 19:57:40 +0000
committerMehdi Amini <joker.eph@gmail.com>2022-03-21 20:50:07 +0000
commit734b8eadd7d364d5d8162ba6f43539be3d7850aa (patch)
treeb0038e8fa35b86b3213b58b60c4969cdace99906 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parentf658ca1abaccd6e0641ef192383e248d35c3e420 (diff)
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
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions