diff --git a/llvm/unittests/Transforms/InstCombine/X86/TernlogTest.cpp b/llvm/unittests/Transforms/InstCombine/X86/TernlogTest.cpp index 669d73289bc3a..df9d1cc9b2980 100644 --- a/llvm/unittests/Transforms/InstCombine/X86/TernlogTest.cpp +++ b/llvm/unittests/Transforms/InstCombine/X86/TernlogTest.cpp @@ -125,7 +125,7 @@ struct TernTester { if (C->isOneValue()) return 1; - assert(0 && "Unknown constant type"); + llvm_unreachable("Unknown constant type"); }; auto ComputeBit = [&](uint64_t A, uint64_t B, uint64_t C) -> uint64_t {