Procházet zdrojové kódy

Update for llvm api changes.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@215856 91177308-0d34-0410-b5e6-96231b3b80d8
Rafael Espindola před 11 roky
rodič
revize
783cea4dd2
2 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 1 1
      lib/ARCMigrate/ObjCMT.cpp
  2. 1 1
      lib/Basic/VirtualFileSystem.cpp

+ 1 - 1
lib/ARCMigrate/ObjCMT.cpp

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

+ 1 - 1
lib/Basic/VirtualFileSystem.cpp

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