From 04ab21d75d043940f432d770b0e8891f1edefaae Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Sun, 17 Aug 2014 22:12:58 +0000 Subject: Convert a few ownership comments with std::unique_ptr. llvm-svn: 215853 --- clang/unittests/Basic/VirtualFileSystemTest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'clang/unittests') diff --git a/clang/unittests/Basic/VirtualFileSystemTest.cpp b/clang/unittests/Basic/VirtualFileSystemTest.cpp index e7d361e252b..89836816e8c 100644 --- a/clang/unittests/Basic/VirtualFileSystemTest.cpp +++ b/clang/unittests/Basic/VirtualFileSystemTest.cpp @@ -540,7 +540,8 @@ public: getFromYAMLRawString(StringRef Content, IntrusiveRefCntPtr ExternalFS) { MemoryBuffer *Buffer = MemoryBuffer::getMemBuffer(Content); - return getVFSFromYAML(Buffer, CountingDiagHandler, this, ExternalFS); + return getVFSFromYAML(std::unique_ptr(Buffer), + CountingDiagHandler, this, ExternalFS); } IntrusiveRefCntPtr getFromYAMLString( -- cgit v1.2.3