forked from OSchip/llvm-project
parent
e404d0ba05
commit
1dd6094517
|
@ -2085,7 +2085,8 @@ void ASTContext::getObjCEncodingForTypeImpl(QualType T, std::string& S,
|
|||
return;
|
||||
}
|
||||
else if (PointeeTy->isObjCInterfaceType()) {
|
||||
if (dyn_cast<TypedefType>(PointeeTy.getTypePtr())) {
|
||||
if (!EncodingProperty &&
|
||||
dyn_cast<TypedefType>(PointeeTy.getTypePtr())) {
|
||||
// Another historical/compatibility reason.
|
||||
// We encode the underlying type which comes out as
|
||||
// {...};
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
// RUN: clang -triple=i686-apple-darwin9 -fnext-runtime -emit-llvm -o %t %s &&
|
||||
// RUN: grep -e "T@\\\\22NSString\\\\22" %t
|
||||
@interface NSString @end
|
||||
|
||||
typedef NSString StoreVersionID ;
|
||||
|
||||
@interface Parent
|
||||
@property(retain) StoreVersionID* foo;
|
||||
@end
|
||||
|
||||
@implementation Parent
|
||||
@dynamic foo;
|
||||
@end
|
Loading…
Reference in New Issue