aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp
diff options
context:
space:
mode:
authorPaul Robinson <paul.robinson@sony.com>2021-03-12 08:47:48 -0800
committerPaul Robinson <paul.robinson@sony.com>2021-03-17 07:37:21 -0700
commit05eeb6077a13aaa5118d6a3f291952710ed84142 (patch)
treef3a1abbd37835f32b3eb7b0fc98b600c945ba9dd /llvm/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp
parent021de7cf80268091cf13485a538b611b37d0b33e (diff)
downloadllvm-05eeb6077a13aaa5118d6a3f291952710ed84142.zip
llvm-05eeb6077a13aaa5118d6a3f291952710ed84142.tar.gz
llvm-05eeb6077a13aaa5118d6a3f291952710ed84142.tar.bz2
[RGT] RPCUtilsTest, replace un-executed EXPECT with unreachable
Unreachable code should be self-documented as unreachable. Found by the Rotten Green Tests project. Differential Revision: https://reviews.llvm.org/D98518
Diffstat (limited to 'llvm/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp')
-rw-r--r--llvm/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp b/llvm/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp
index 1ad13e8..0f5cb14 100644
--- a/llvm/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp
+++ b/llvm/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp
@@ -871,8 +871,7 @@ TEST(DummyRPC, TestRemoveHandler) {
Server.addHandler<DummyRPCAPI::VoidBool>(
[](bool B) {
- EXPECT_EQ(B, true)
- << "Server void(bool) received unexpected result";
+ llvm_unreachable("Server void(bool) received unexpected result");
});
Server.removeHandler<DummyRPCAPI::VoidBool>();
@@ -884,8 +883,7 @@ TEST(DummyRPC, TestClearHandlers) {
Server.addHandler<DummyRPCAPI::VoidBool>(
[](bool B) {
- EXPECT_EQ(B, true)
- << "Server void(bool) received unexpected result";
+ llvm_unreachable("Server void(bool) received unexpected result");
});
Server.clearHandlers();