mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #61606 from NuriAmari/fwd-declarations
Import Forward Declared Objective-C Interfaces and Protocols
This commit is contained in:
@@ -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)");
|
||||
|
||||
Reference in New Issue
Block a user