objc modern translator: fix up attribute for dynamic property in a category.

// rdar://11095151

llvm-svn: 156127
This commit is contained in:
Fariborz Jahanian 2012-05-03 23:19:33 +00:00
parent 0da530562a
commit e9863b5c8e
2 changed files with 11 additions and 1 deletions

View File

@ -7160,7 +7160,7 @@ void RewriteModernObjC::RewriteObjCCategoryImplDecl(ObjCCategoryImplDecl *IDecl,
ClassProperties.push_back(&*I);
Write_prop_list_t_initializer(*this, Context, Result, ClassProperties,
/* Container */0,
/* Container */IDecl,
"_OBJC_$_PROP_LIST_",
FullCategoryName);

View File

@ -33,3 +33,13 @@ typedef void (^void_block_t)(void);
// CHECK: T@?,C,V__completion
// CHECK: T@\"PropertyClass\",&,VYVAR
@interface Test @end
@interface Test (Category)
@property int q;
@end
@implementation Test (Category)
@dynamic q;
@end
// CHECK: {{"q","Ti,D"}}