@@ -9807,12 +9807,12 @@ void ASTReader::visitTopLevelModuleMaps(
9807
9807
}
9808
9808
9809
9809
void ASTReader::finishPendingActions () {
9810
- while (
9811
- !PendingIdentifierInfos. empty () || !PendingDeducedFunctionTypes.empty () ||
9812
- !PendingDeducedVarTypes.empty () || !PendingIncompleteDeclChains .empty () ||
9813
- !PendingDeclChains .empty () || !PendingMacroIDs .empty () ||
9814
- !PendingDeclContextInfos. empty () || !PendingUpdateRecords.empty () ||
9815
- !PendingObjCExtensionIvarRedeclarations.empty ()) {
9810
+ while (!PendingIdentifierInfos. empty () ||
9811
+ !PendingDeducedFunctionTypes.empty () ||
9812
+ !PendingDeducedVarTypes.empty () || !PendingDeclChains .empty () ||
9813
+ !PendingMacroIDs .empty () || !PendingDeclContextInfos .empty () ||
9814
+ !PendingUpdateRecords.empty () ||
9815
+ !PendingObjCExtensionIvarRedeclarations.empty ()) {
9816
9816
// If any identifiers with corresponding top-level declarations have
9817
9817
// been loaded, load those declarations now.
9818
9818
using TopLevelDeclsMap =
@@ -9860,13 +9860,6 @@ void ASTReader::finishPendingActions() {
9860
9860
}
9861
9861
PendingDeducedVarTypes.clear ();
9862
9862
9863
- // For each decl chain that we wanted to complete while deserializing, mark
9864
- // it as "still needs to be completed".
9865
- for (unsigned I = 0 ; I != PendingIncompleteDeclChains.size (); ++I) {
9866
- markIncompleteDeclChain (PendingIncompleteDeclChains[I]);
9867
- }
9868
- PendingIncompleteDeclChains.clear ();
9869
-
9870
9863
// Load pending declaration chains.
9871
9864
for (unsigned I = 0 ; I != PendingDeclChains.size (); ++I)
9872
9865
loadPendingDeclChain (PendingDeclChains[I].first ,
@@ -10117,6 +10110,13 @@ void ASTReader::finishPendingActions() {
10117
10110
for (auto *ND : PendingMergedDefinitionsToDeduplicate)
10118
10111
getContext ().deduplicateMergedDefinitonsFor (ND);
10119
10112
PendingMergedDefinitionsToDeduplicate.clear ();
10113
+
10114
+ // For each decl chain that we wanted to complete while deserializing, mark
10115
+ // it as "still needs to be completed".
10116
+ for (unsigned I = 0 ; I != PendingIncompleteDeclChains.size (); ++I) {
10117
+ markIncompleteDeclChain (PendingIncompleteDeclChains[I]);
10118
+ }
10119
+ PendingIncompleteDeclChains.clear ();
10120
10120
}
10121
10121
10122
10122
void ASTReader::diagnoseOdrViolations () {
0 commit comments