[llvm] r341070 - More build fix for r341064.

Alexandre Ganea via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 30 07:05:49 PDT 2018


Author: aganea
Date: Thu Aug 30 07:05:49 2018
New Revision: 341070

URL: http://llvm.org/viewvc/llvm-project?rev=341070&view=rev
Log:
More build fix for r341064.

Modified:
    llvm/trunk/unittests/Support/ErrorTest.cpp

Modified: llvm/trunk/unittests/Support/ErrorTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Support/ErrorTest.cpp?rev=341070&r1=341069&r2=341070&view=diff
==============================================================================
--- llvm/trunk/unittests/Support/ErrorTest.cpp (original)
+++ llvm/trunk/unittests/Support/ErrorTest.cpp Thu Aug 30 07:05:49 2018
@@ -870,7 +870,7 @@ TEST(Error, FileErrorTest) {
     EXPECT_DEATH(
       {
         Error S = Error::success();
-        createFileError("file.bin", std::move(S));
+        consumeError(createFileError("file.bin", std::move(S)));
       },
       "");
 #endif




More information about the llvm-commits mailing list