Merge pull request #38948 from beccadax/the-copypasta-is-stale

[NFC] Factor out ASTContext `operator new`s
This commit is contained in:
Becca Royal-Gordon
2021-08-20 11:04:56 -07:00
committed by GitHub
37 changed files with 139 additions and 413 deletions

View File

@@ -186,13 +186,6 @@ ProtocolConformanceRef::getWitnessByName(Type type, DeclName name) const {
return getConcrete()->getWitnessDeclRef(requirement);
}
void *ProtocolConformance::operator new(size_t bytes, ASTContext &context,
AllocationArena arena,
unsigned alignment) {
return context.Allocate(bytes, alignment, arena);
}
#define CONFORMANCE_SUBCLASS_DISPATCH(Method, Args) \
switch (getKind()) { \
case ProtocolConformanceKind::Normal: \