mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-03 00:16:05 +00:00

The deserialization of redeclartion can cause seg fault since getCanonicalDecl of the redeclaration returns the lookup result on the ObjCContainerDecl, which can be null if FindExternalVisibleDeclsByName is not done updating the lookup results. The fix is to return the redeclaration itself as the canonical decl. Note that the handling for redeclaration of ObjCMethodDecl is not in line with other redeclarables. rdar://28488466 llvm-svn: 283145
5 lines
46 B
Objective-C
5 lines
46 B
Objective-C
@interface T
|
|
- (void)test;
|
|
- (void)test;
|
|
@end
|