[cfe-commits] r65238 - /cfe/trunk/include/clang/AST/Type.h
Fariborz Jahanian
fjahanian at apple.com
Sat Feb 21 11:08:45 PST 2009
Author: fjahanian
Date: Sat Feb 21 13:08:45 2009
New Revision: 65238
URL: http://llvm.org/viewvc/llvm-project?rev=65238&view=rev
Log:
Fix a bug whereby a pointer to a __weak was not recognized
as __weak (objc2 gc specific).
Modified:
cfe/trunk/include/clang/AST/Type.h
Modified: cfe/trunk/include/clang/AST/Type.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Type.h?rev=65238&r1=65237&r2=65238&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Type.h (original)
+++ cfe/trunk/include/clang/AST/Type.h Sat Feb 21 13:08:45 2009
@@ -1774,6 +1774,8 @@
return AT->getElementType().getObjCGCAttr();
if (const ExtQualType *EXTQT = dyn_cast<ExtQualType>(CT))
return EXTQT->getObjCGCAttr();
+ if (const PointerType *PT = CT->getAsPointerType())
+ return PT->getPointeeType().getObjCGCAttr();
return GCNone;
}
More information about the cfe-commits
mailing list