Skip to content

Commit

Permalink
Fix MSVC "not all control paths return a value" warning. NFC.
Browse files Browse the repository at this point in the history
  • Loading branch information
RKSimon committed Apr 3, 2023
1 parent 2107fe3 commit 7d2b447
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/unittests/Transforms/InstCombine/X86/TernlogTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7d2b447

Please sign in to comment.