Skip to content

Commit 5e63905

Browse files
authored
Merge pull request swiftlang#30452 from gribozavr/GSB-direct-alloc
2 parents 746cb14 + 80e4a70 commit 5e63905

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/AST/GenericSignatureBuilder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3783,8 +3783,8 @@ void GenericSignatureBuilder::addGenericParameter(GenericTypeParamType *GenericP
37833783
Key.Index == 0)));
37843784

37853785
// Create a potential archetype for this type parameter.
3786-
void *mem = Impl->Allocator.Allocate<PotentialArchetype>();
3787-
auto PA = new (mem) PotentialArchetype(getASTContext(), GenericParam);
3786+
auto PA =
3787+
new (Impl->Allocator) PotentialArchetype(getASTContext(), GenericParam);
37883788
Impl->GenericParams.push_back(GenericParam);
37893789
Impl->PotentialArchetypes.push_back(PA);
37903790
}

0 commit comments

Comments
 (0)