We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 746cb14 + 80e4a70 commit 5e63905Copy full SHA for 5e63905
lib/AST/GenericSignatureBuilder.cpp
@@ -3783,8 +3783,8 @@ void GenericSignatureBuilder::addGenericParameter(GenericTypeParamType *GenericP
3783
Key.Index == 0)));
3784
3785
// Create a potential archetype for this type parameter.
3786
- void *mem = Impl->Allocator.Allocate<PotentialArchetype>();
3787
- auto PA = new (mem) PotentialArchetype(getASTContext(), GenericParam);
+ auto PA =
+ new (Impl->Allocator) PotentialArchetype(getASTContext(), GenericParam);
3788
Impl->GenericParams.push_back(GenericParam);
3789
Impl->PotentialArchetypes.push_back(PA);
3790
}
0 commit comments