Convert a few ownership comments with std::unique_ptr.
llvm-svn: 215853
This commit is contained in:
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user