diff options
Diffstat (limited to 'lib/Sema/IdentifierResolver.cpp')
-rw-r--r-- | lib/Sema/IdentifierResolver.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/Sema/IdentifierResolver.cpp b/lib/Sema/IdentifierResolver.cpp index 812f5d64fa..a80f23f58e 100644 --- a/lib/Sema/IdentifierResolver.cpp +++ b/lib/Sema/IdentifierResolver.cpp @@ -318,15 +318,6 @@ static DeclMatchKind compareDeclarations(NamedDecl *Existing, NamedDecl *New) { return DMK_Ignore; } - // If the declarations are both Objective-C classes, and one is a forward - // declaration and the other is not, take the full definition. - // FIXME: At some point, we'll actually have to detect collisions better. - // This logic, however, belongs in the AST reader, not here. - if (ObjCInterfaceDecl *ExistingIFace = dyn_cast<ObjCInterfaceDecl>(Existing)) - if (ObjCInterfaceDecl *NewIFace = dyn_cast<ObjCInterfaceDecl>(New)) - if (ExistingIFace->isForwardDecl() != NewIFace->isForwardDecl()) - return ExistingIFace->isForwardDecl()? DMK_Replace : DMK_Ignore; - return DMK_Different; } |