Fix a FIXME, use std::move.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 28 Mar 2014 17:31:23 +0000 (17:31 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 28 Mar 2014 17:31:23 +0000 (17:31 +0000)
llvm-svn: 205021

clang/lib/Serialization/ASTReader.cpp

index 311a403..2d3408c 100644 (file)
@@ -7743,14 +7743,14 @@ void ASTReader::finishPendingActions() {
     TopLevelDeclsMap TopLevelDecls;
 
     while (!PendingIdentifierInfos.empty()) {
-      // FIXME: std::move
       IdentifierInfo *II = PendingIdentifierInfos.back().first;
-      SmallVector<uint32_t, 4> DeclIDs = PendingIdentifierInfos.back().second;
+      SmallVector<uint32_t, 4> DeclIDs =
+          std::move(PendingIdentifierInfos.back().second);
       PendingIdentifierInfos.pop_back();
 
       SetGloballyVisibleDecls(II, DeclIDs, &TopLevelDecls[II]);
     }
-  
+
     // Load pending declaration chains.
     for (unsigned I = 0; I != PendingDeclChains.size(); ++I) {
       loadPendingDeclChain(PendingDeclChains[I]);