Skip to content

Commit 39280fc

Browse files
mikeashDougGregor
authored andcommitted
Fix _forEach*SectionAfter to update the start parameter.
1 parent a6a969c commit 39280fc

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

stdlib/public/runtime/MetadataLookup.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ static void _forEachTypeMetadataSectionAfter(
245245
for (auto *section = begin; section != end; section++) {
246246
f(section->Begin, section->End);
247247
}
248+
*start = snapshot.Count;
248249
}
249250
}
250251

stdlib/public/runtime/ProtocolConformance.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,7 @@ swift::_forEachProtocolConformanceSectionAfter(
646646
for (auto *section = begin; section != end; section++) {
647647
f(section->Begin, section->End);
648648
}
649+
*start = snapshot.Count;
649650
}
650651
}
651652

0 commit comments

Comments
 (0)