Update for llvm api changes.

llvm-svn: 215856
This commit is contained in:
Rafael Espindola
2014-08-17 22:20:41 +00:00
parent b16ecf8224
commit b3402685f6
2 changed files with 2 additions and 2 deletions

View File

@@ -869,7 +869,7 @@ VFSFromYAML *VFSFromYAML::create(std::unique_ptr<MemoryBuffer> Buffer,
IntrusiveRefCntPtr<FileSystem> ExternalFS) {
SourceMgr SM;
yaml::Stream Stream(Buffer.release(), SM);
yaml::Stream Stream(std::move(Buffer), SM);
SM.setDiagHandler(DiagHandler, DiagContext);
yaml::document_iterator DI = Stream.begin();