Update for llvm API change.

llvm-svn: 216576
This commit is contained in:
Rafael Espindola 2014-08-27 19:03:27 +00:00
parent 68669e3a7b
commit 85d7892459
2 changed files with 2 additions and 2 deletions

View File

@ -1938,7 +1938,7 @@ public:
return true;
llvm::SourceMgr SM;
Stream YAMLStream(std::move(*FileBufOrErr), SM);
Stream YAMLStream(FileBufOrErr.get()->getMemBufferRef(), SM);
document_iterator I = YAMLStream.begin();
if (I == YAMLStream.end())
return true;

View File

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