Convert a few ownership comments with std::unique_ptr.

llvm-svn: 215853
This commit is contained in:
Rafael Espindola
2014-08-17 22:12:58 +00:00
parent f7aed8017a
commit 04ab21d75d
4 changed files with 11 additions and 13 deletions

View File

@@ -2034,7 +2034,7 @@ createVFSFromCompilerInvocation(const CompilerInvocation &CI,
}
IntrusiveRefCntPtr<vfs::FileSystem> FS =
vfs::getVFSFromYAML(Buffer->release(), /*DiagHandler*/ nullptr);
vfs::getVFSFromYAML(std::move(Buffer.get()), /*DiagHandler*/ nullptr);
if (!FS.get()) {
Diags.Report(diag::err_invalid_vfs_overlay) << File;
return IntrusiveRefCntPtr<vfs::FileSystem>();