mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #38948 from beccadax/the-copypasta-is-stale
[NFC] Factor out ASTContext `operator new`s
This commit is contained in:
@@ -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: \
|
||||
|
||||
Reference in New Issue
Block a user