diff options
Diffstat (limited to 'llvm/unittests/Support/TarWriterTest.cpp')
-rw-r--r-- | llvm/unittests/Support/TarWriterTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/Support/TarWriterTest.cpp b/llvm/unittests/Support/TarWriterTest.cpp index dfcf88f16ae..4a088835d1c 100644 --- a/llvm/unittests/Support/TarWriterTest.cpp +++ b/llvm/unittests/Support/TarWriterTest.cpp @@ -49,7 +49,7 @@ static UstarHeader create(StringRef Base, StringRef Filename) { EXPECT_TRUE((bool)TarOrErr); std::unique_ptr<TarWriter> Tar = std::move(*TarOrErr); Tar->append(Filename, "contents"); - Tar.release(); + Tar.reset(); // Read the tar file. ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = MemoryBuffer::getFile(Path); |