]> granicus.if.org Git - clang/commitdiff
[C++11] Switch from the llvm_move macro to directly calling std::move.
authorChandler Carruth <chandlerc@gmail.com>
Sun, 2 Mar 2014 04:02:40 +0000 (04:02 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 2 Mar 2014 04:02:40 +0000 (04:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202611 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Sema/DelayedDiagnostic.h
lib/ARCMigrate/ARCMT.cpp
lib/Basic/VirtualFileSystem.cpp
lib/StaticAnalyzer/Core/RegionStore.cpp

index 0a3b9f59261fc8c6bd45ebb105f658ddc26bdf82..9a0541d877475a4861b32d56e3b2c228f17f2ff8 100644 (file)
@@ -261,7 +261,7 @@ public:
     if (pool.Diagnostics.empty()) return;
 
     if (Diagnostics.empty()) {
-      Diagnostics = llvm_move(pool.Diagnostics);
+      Diagnostics = std::move(pool.Diagnostics);
     } else {
       Diagnostics.append(pool.pool_begin(), pool.pool_end());
     }
index 7894c58ea4504e2b414d5e5191d2450d20da52d5..0593a362ef628a81c1b97acf48113370474ac91a 100644 (file)
@@ -204,7 +204,7 @@ createInvocationForMigration(CompilerInvocation &origCI) {
       WarnOpts.push_back(*I);
   }
   WarnOpts.push_back("error=arc-unsafe-retained-assign");
-  CInvok->getDiagnosticOpts().Warnings = llvm_move(WarnOpts);
+  CInvok->getDiagnosticOpts().Warnings = std::move(WarnOpts);
 
   CInvok->getLangOpts()->ObjCARCWeak = HasARCRuntime(origCI);
 
index c32df5bf750b70728de84f6061db90f2dc13eb27..f21cff6e0f34b3d2f2ab3ba45b06a644d6edf247 100644 (file)
@@ -110,7 +110,7 @@ ErrorOr<Status> RealFile::status() {
       return EC;
     Status NewS(RealStatus);
     NewS.setName(S.getName());
-    S = llvm_move(NewS);
+    S = std::move(NewS);
   }
   return S;
 }
@@ -592,11 +592,11 @@ class VFSFromYAMLParser {
     Entry *Result = 0;
     switch (Kind) {
     case EK_File:
-      Result = new FileEntry(LastComponent, llvm_move(ExternalContentsPath),
+      Result = new FileEntry(LastComponent, std::move(ExternalContentsPath),
                              UseExternalName);
       break;
     case EK_Directory:
-      Result = new DirectoryEntry(LastComponent, llvm_move(EntryArrayContents),
+      Result = new DirectoryEntry(LastComponent, std::move(EntryArrayContents),
           Status("", "", getNextVirtualUniqueID(), sys::TimeValue::now(), 0, 0,
                  0, file_type::directory_file, sys::fs::all_all));
       break;
index 245491c9fd03fe7a5a087fd831d7e7f64a81c54e..059e5137ae8cfbffdadf5a1b4de7bf4c84f143a5 100644 (file)
@@ -1787,7 +1787,7 @@ RegionStoreManager::getInterestingValues(nonloc::LazyCompoundVal LCV) {
   // values to return.
   const ClusterBindings *Cluster = B.lookup(LazyR->getBaseRegion());
   if (!Cluster)
-    return (LazyBindingsMap[LCV.getCVData()] = llvm_move(List));
+    return (LazyBindingsMap[LCV.getCVData()] = std::move(List));
 
   SmallVector<BindingPair, 32> Bindings;
   collectSubRegionBindings(Bindings, svalBuilder, *Cluster, LazyR,
@@ -1809,7 +1809,7 @@ RegionStoreManager::getInterestingValues(nonloc::LazyCompoundVal LCV) {
     List.push_back(V);
   }
 
-  return (LazyBindingsMap[LCV.getCVData()] = llvm_move(List));
+  return (LazyBindingsMap[LCV.getCVData()] = std::move(List));
 }
 
 NonLoc RegionStoreManager::createLazyBinding(RegionBindingsConstRef B,