mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-24 23:36:08 +00:00

If we have something like @class NewImage; @compatibility_alias OldImage NewImage; @class OldImage; the lookup for 'OldImage' will return the 'NewImage' decl ("@class NewImage"). In such a case, when creating the decl for "@class OldImage" use the real declaration name ("NewImage"), instead of the alias one ("OldImage"), otherwise we will break IdentifierResolver and redecls-chain invariants. Fixes crash of rdar://14112291. llvm-svn: 184238
19 lines
281 B
Objective-C
19 lines
281 B
Objective-C
/* For use with the objc_import.m test */
|
|
|
|
@interface TestPCH
|
|
+ alloc;
|
|
- (void)instMethod;
|
|
@end
|
|
|
|
@class NewID1;
|
|
@compatibility_alias OldID1 NewID1;
|
|
@class OldID1;
|
|
@class OldID1;
|
|
|
|
@class NewID2;
|
|
@compatibility_alias OldID2 NewID2;
|
|
@class OldID2;
|
|
@interface OldID2
|
|
-(void)meth;
|
|
@end
|