]> granicus.if.org Git - llvm/commitdiff
[ORC] Temporarily fix the RPCUtils unit test by explicitly specifying a handler
authorLang Hames <lhames@gmail.com>
Fri, 11 Nov 2016 22:16:10 +0000 (22:16 +0000)
committerLang Hames <lhames@gmail.com>
Fri, 11 Nov 2016 22:16:10 +0000 (22:16 +0000)
return type.

This should be fixed permanently by having the RPCUtils header recognize the
ErrorSuccess type. I'll commit that in a follow up patch.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286646 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp

index 4d703c78a0e3d9f7c75ad531cb5cda63069a9875..565ebfa3f8fc80a4ceaced59140039c8a4ef59e5 100644 (file)
@@ -191,7 +191,7 @@ TEST(DummyRPC, TestSerialization) {
       Server.addHandler<DummyRPCAPI::AllTheTypes>(
           [&](int8_t S8, uint8_t U8, int16_t S16, uint16_t U16,
               int32_t S32, uint32_t U32, int64_t S64, uint64_t U64,
-              bool B, std::string S, std::vector<int> V) {
+              bool B, std::string S, std::vector<int> V) -> Error {
 
             EXPECT_EQ(S8, -101) << "int8_t serialization broken";
             EXPECT_EQ(U8, 250) << "uint8_t serialization broken";