summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Basic/VirtualFileSystemTest.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-08-17 22:12:58 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-08-17 22:12:58 +0000
commit04ab21d75d043940f432d770b0e8891f1edefaae (patch)
tree7d6371da6a64a3bb148837f2781b2b082d6fa32d /clang/unittests/Basic/VirtualFileSystemTest.cpp
parentf7aed8017ad5c91a71e4e443ffc04379c2fefedb (diff)
downloadbcm5719-llvm-04ab21d75d043940f432d770b0e8891f1edefaae.tar.gz
bcm5719-llvm-04ab21d75d043940f432d770b0e8891f1edefaae.zip
Convert a few ownership comments with std::unique_ptr.
llvm-svn: 215853
Diffstat (limited to 'clang/unittests/Basic/VirtualFileSystemTest.cpp')
-rw-r--r--clang/unittests/Basic/VirtualFileSystemTest.cpp3
1 files changed, 2 insertions, 1 deletions
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<vfs::FileSystem> ExternalFS) {
MemoryBuffer *Buffer = MemoryBuffer::getMemBuffer(Content);
- return getVFSFromYAML(Buffer, CountingDiagHandler, this, ExternalFS);
+ return getVFSFromYAML(std::unique_ptr<MemoryBuffer>(Buffer),
+ CountingDiagHandler, this, ExternalFS);
}
IntrusiveRefCntPtr<vfs::FileSystem> getFromYAMLString(
OpenPOWER on IntegriCloud