r215856 - Update for llvm api changes.
Rafael Espindola
rafael.espindola at gmail.com
Sun Aug 17 15:20:41 PDT 2014
Author: rafael
Date: Sun Aug 17 17:20:41 2014
New Revision: 215856
URL: http://llvm.org/viewvc/llvm-project?rev=215856&view=rev
Log:
Update for llvm api changes.
Modified:
cfe/trunk/lib/ARCMigrate/ObjCMT.cpp
cfe/trunk/lib/Basic/VirtualFileSystem.cpp
Modified: cfe/trunk/lib/ARCMigrate/ObjCMT.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/ARCMigrate/ObjCMT.cpp?rev=215856&r1=215855&r2=215856&view=diff
==============================================================================
--- cfe/trunk/lib/ARCMigrate/ObjCMT.cpp (original)
+++ cfe/trunk/lib/ARCMigrate/ObjCMT.cpp Sun Aug 17 17:20:41 2014
@@ -1939,7 +1939,7 @@ public:
return true;
llvm::SourceMgr SM;
- Stream YAMLStream(FileBufOrErr.get().release(), SM);
+ Stream YAMLStream(std::move(FileBufOrErr.get()), SM);
document_iterator I = YAMLStream.begin();
if (I == YAMLStream.end())
return true;
Modified: cfe/trunk/lib/Basic/VirtualFileSystem.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/VirtualFileSystem.cpp?rev=215856&r1=215855&r2=215856&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/VirtualFileSystem.cpp (original)
+++ cfe/trunk/lib/Basic/VirtualFileSystem.cpp Sun Aug 17 17:20:41 2014
@@ -869,7 +869,7 @@ VFSFromYAML *VFSFromYAML::create(std::un
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();
More information about the cfe-commits
mailing list