Fix MSVC "not all control paths return a value" warning. NFC.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 3 Apr 2023 16:12:11 +0000 (17:12 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 3 Apr 2023 16:12:37 +0000 (17:12 +0100)
llvm/unittests/Transforms/InstCombine/X86/TernlogTest.cpp

index 669d732..df9d1cc 100644 (file)
@@ -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 {