diff options
-rw-r--r-- | llvm/unittests/Support/ErrorTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/Support/ErrorTest.cpp b/llvm/unittests/Support/ErrorTest.cpp index d3d26df8ceb..25102895d20 100644 --- a/llvm/unittests/Support/ErrorTest.cpp +++ b/llvm/unittests/Support/ErrorTest.cpp @@ -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 |