From 3c7d183c3e38eb62f87938049674d71a0d0442a2 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Fri, 28 Mar 2014 17:31:23 +0000 Subject: [PATCH] Fix a FIXME, use std::move. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205021 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Serialization/ASTReader.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Serialization/ASTReader.cpp b/lib/Serialization/ASTReader.cpp index 311a403f44..2d3408c584 100644 --- a/lib/Serialization/ASTReader.cpp +++ b/lib/Serialization/ASTReader.cpp @@ -7743,14 +7743,14 @@ void ASTReader::finishPendingActions() { TopLevelDeclsMap TopLevelDecls; while (!PendingIdentifierInfos.empty()) { - // FIXME: std::move IdentifierInfo *II = PendingIdentifierInfos.back().first; - SmallVector DeclIDs = PendingIdentifierInfos.back().second; + SmallVector 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]); -- 2.40.0