aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-10-09 17:50:23 +0000
committerDouglas Gregor <dgregor@apple.com>2012-10-09 17:50:23 +0000
commitce12d2f8863588d408897602089d17c4d3c3d0e5 (patch)
treeb8cfede569c1e2a65c877aa6530d338f94cca769 /lib
parent5456b0fe40714a78cd0ba7c1a5b7dc34eda385af (diff)
Make the order of visitation of the pending bodies in the AST reader
deterministic. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165515 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Serialization/ASTReader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Serialization/ASTReader.cpp b/lib/Serialization/ASTReader.cpp
index b37f8c2363..b7266ebbba 100644
--- a/lib/Serialization/ASTReader.cpp
+++ b/lib/Serialization/ASTReader.cpp
@@ -6484,8 +6484,8 @@ void ASTReader::finishPendingActions() {
// Load the bodies of any functions or methods we've encountered. We do
// this now (delayed) so that we can be sure that the declaration chains
// have been fully wired up.
- for (llvm::SmallDenseMap<Decl *, uint64_t, 4>::iterator
- PB = PendingBodies.begin(), PBEnd = PendingBodies.end();
+ for (PendingBodiesMap::iterator PB = PendingBodies.begin(),
+ PBEnd = PendingBodies.end();
PB != PBEnd; ++PB) {
if (FunctionDecl *FD = dyn_cast<FunctionDecl>(PB->first)) {
// FIXME: Check for =delete/=default?