Fix a FIXME, use std::move.

llvm-svn: 205021
This commit is contained in:
Richard Smith 2014-03-28 17:31:23 +00:00
parent c9d58e8d32
commit f0ae3c2de2
1 changed files with 3 additions and 3 deletions

View 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]);