[ORC] Consume unhandled errors in unit test.
authorLang Hames <lhames@gmail.com>
Sun, 7 Oct 2018 01:08:02 +0000 (01:08 +0000)
committerLang Hames <lhames@gmail.com>
Sun, 7 Oct 2018 01:08:02 +0000 (01:08 +0000)
This should fix the failures on the debug buildbots.

llvm-svn: 343929

llvm/unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp

index 47f62a7..cd74218 100644 (file)
@@ -167,6 +167,7 @@ TEST_F(CoreAPIsStandardTest, RemoveSymbolsTest) {
     EXPECT_TRUE(!!Err) << "Expected failure";
     EXPECT_TRUE(Err.isA<SymbolsNotFound>())
         << "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<SymbolsCouldNotBeRemoved>())
         << "Expected a SymbolsNotFound error";
+    consumeError(std::move(Err));
   }
 
   BazR->resolve({{Baz, BazSym}});