Merge pull request #61606 from NuriAmari/fwd-declarations

Import Forward Declared Objective-C Interfaces and Protocols
This commit is contained in:
Puyan Lotfi
2023-03-08 21:44:47 -08:00
committed by GitHub
53 changed files with 1615 additions and 56 deletions

View File

@@ -623,10 +623,6 @@ DeclID Serializer::addDeclRef(const Decl *D, bool allowTypeAliasXRef) {
isa<PrecedenceGroupDecl>(D)) &&
"cannot cross-reference this decl");
assert((!D || !isDeclXRef(D) ||
!D->getAttrs().hasAttribute<ForbidSerializingReferenceAttr>()) &&
"cannot cross-reference this decl");
assert((!D || allowTypeAliasXRef || !isa<TypeAliasDecl>(D) ||
D->getModuleContext() == M) &&
"cannot cross-reference typealiases directly (use the TypeAliasType)");