[llvm] fd722c5 - Fix MSVC "not all control paths return a value" warning. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 7 10:10:26 PST 2021
Author: Simon Pilgrim
Date: 2021-12-07T18:09:44Z
New Revision: fd722c5959b98a706153f0e9e5111721efbfad41
URL: https://github.com/llvm/llvm-project/commit/fd722c5959b98a706153f0e9e5111721efbfad41
DIFF: https://github.com/llvm/llvm-project/commit/fd722c5959b98a706153f0e9e5111721efbfad41.diff
LOG: Fix MSVC "not all control paths return a value" warning. NFC.
Added:
Modified:
llvm/unittests/CodeGen/RegAllocScoreTest.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/CodeGen/RegAllocScoreTest.cpp b/llvm/unittests/CodeGen/RegAllocScoreTest.cpp
index 06e9180207b85..ae5db2d8a24e1 100644
--- a/llvm/unittests/CodeGen/RegAllocScoreTest.cpp
+++ b/llvm/unittests/CodeGen/RegAllocScoreTest.cpp
@@ -145,7 +145,7 @@ TEST(RegAllocScoreTest, Counts) {
return Freq1;
if (&MBB == MBB2)
return Freq2;
- assert(false && "We only created 2 basic blocks");
+ llvm_unreachable("We only created 2 basic blocks");
};
auto Next = MBB1->end();
Next = MBB1->insertAfter(Next, createMockCopy(*MF));
More information about the llvm-commits
mailing list