Skip to content

Commit a5d127e

Browse files
committed
SIL: Rename old LocalArchetypeRequirementCollector
On main I refactored it away, but here I'm just renaming the old one to avoid a name conflict.
1 parent 413d94b commit a5d127e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/SIL/IR/SILFunctionType.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2834,7 +2834,7 @@ CanSILFunctionType swift::getNativeSILFunctionType(
28342834
}
28352835

28362836
namespace {
2837-
struct LocalArchetypeRequirementCollector {
2837+
struct OldLocalArchetypeRequirementCollector {
28382838
const ASTContext &Context;
28392839
unsigned Depth;
28402840

@@ -2853,7 +2853,7 @@ struct LocalArchetypeRequirementCollector {
28532853
/// The set of element environments we've processed.
28542854
llvm::SmallPtrSet<GenericEnvironment*, 4> ElementEnvs;
28552855

2856-
LocalArchetypeRequirementCollector(const ASTContext &ctx, unsigned depth)
2856+
OldLocalArchetypeRequirementCollector(const ASTContext &ctx, unsigned depth)
28572857
: Context(ctx), Depth(depth) {}
28582858

28592859
void collect(CanLocalArchetypeType archetype) {
@@ -3023,7 +3023,7 @@ buildThunkSignature(SILFunction *fn,
30233023
}
30243024

30253025
// Add new generic parameters to replace the local archetypes.
3026-
LocalArchetypeRequirementCollector collector(ctx, depth);
3026+
OldLocalArchetypeRequirementCollector collector(ctx, depth);
30273027

30283028
for (auto archetype : localArchetypes) {
30293029
collector.collect(archetype);

0 commit comments

Comments
 (0)