diff --git a/lib/Serialization/ASTReaderDecl.cpp b/lib/Serialization/ASTReaderDecl.cpp index 77ea318dc0..163cbadcd3 100644 --- a/lib/Serialization/ASTReaderDecl.cpp +++ b/lib/Serialization/ASTReaderDecl.cpp @@ -1416,8 +1416,8 @@ void ASTDeclReader::VisitRedeclarable(Redeclarable *D) { } // Note that we need to load the other declaration chains for this ID. - if (Reader.PendingDeclChainsKnown.insert(ThisDeclID)) - Reader.PendingDeclChains.push_back(ThisDeclID); + if (Reader.PendingDeclChainsKnown.insert(FirstDeclID)) + Reader.PendingDeclChains.push_back(FirstDeclID); } //===----------------------------------------------------------------------===//