diff --git a/unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp b/unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp index 47f62a796b8..cd742187ffb 100644 --- a/unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp +++ b/unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp @@ -167,6 +167,7 @@ TEST_F(CoreAPIsStandardTest, RemoveSymbolsTest) { EXPECT_TRUE(!!Err) << "Expected failure"; EXPECT_TRUE(Err.isA()) << "Expected a SymbolsNotFound error"; + consumeError(std::move(Err)); } { @@ -175,6 +176,7 @@ TEST_F(CoreAPIsStandardTest, RemoveSymbolsTest) { EXPECT_TRUE(!!Err) << "Expected failure"; EXPECT_TRUE(Err.isA()) << "Expected a SymbolsNotFound error"; + consumeError(std::move(Err)); } BazR->resolve({{Baz, BazSym}});