]> granicus.if.org Git - clang/commitdiff
Use MapVector::pop_back() per LLVM r175538.
authorDouglas Gregor <dgregor@apple.com>
Tue, 19 Feb 2013 18:26:28 +0000 (18:26 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 19 Feb 2013 18:26:28 +0000 (18:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175539 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Serialization/ASTReader.cpp

index 901eeb12fdc2ce9598a8b801efe5e7a6c20441ce..bc212bcfb0281f0eb2bbd3ddc5278ee9b6405133 100644 (file)
@@ -6998,7 +6998,7 @@ void ASTReader::finishPendingActions() {
       // FIXME: std::move
       IdentifierInfo *II = PendingIdentifierInfos.back().first;
       SmallVector<uint32_t, 4> DeclIDs = PendingIdentifierInfos.back().second;
-      PendingIdentifierInfos.erase(II);
+      PendingIdentifierInfos.pop_back();
 
       SetGloballyVisibleDecls(II, DeclIDs, &TopLevelDecls[II]);
     }