[llvm] 7d2b447 - Fix MSVC "not all control paths return a value" warning. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 3 09:12:51 PDT 2023
Author: Simon Pilgrim
Date: 2023-04-03T17:12:37+01:00
New Revision: 7d2b44734475f8a16b000811183dd8aaea0b419f
URL: https://github.com/llvm/llvm-project/commit/7d2b44734475f8a16b000811183dd8aaea0b419f
DIFF: https://github.com/llvm/llvm-project/commit/7d2b44734475f8a16b000811183dd8aaea0b419f.diff
LOG: Fix MSVC "not all control paths return a value" warning. NFC.
Added:
Modified:
llvm/unittests/Transforms/InstCombine/X86/TernlogTest.cpp
Removed:
################################################################################
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 {
More information about the llvm-commits
mailing list