diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2021-12-07 18:09:18 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2021-12-07 18:09:44 +0000 |
commit | fd722c5959b98a706153f0e9e5111721efbfad41 (patch) | |
tree | 4475dd944cfc5fc3bfa68eec41dd3725236fb870 | |
parent | 52d2f353235d17c279178a0c9f697c9bafece06e (diff) | |
download | llvm-fd722c5959b98a706153f0e9e5111721efbfad41.tar.gz |
Fix MSVC "not all control paths return a value" warning. NFC.
-rw-r--r-- | llvm/unittests/CodeGen/RegAllocScoreTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/CodeGen/RegAllocScoreTest.cpp b/llvm/unittests/CodeGen/RegAllocScoreTest.cpp index 06e9180207b8..ae5db2d8a24e 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)); |