Fix a bug whereby a pointer to a __weak was not recognized

as __weak (objc2 gc specific).

llvm-svn: 65238
This commit is contained in:
Fariborz Jahanian 2009-02-21 19:08:45 +00:00
parent 97ad7b689e
commit 2300ad57a0
1 changed files with 2 additions and 0 deletions

View File

@ -1774,6 +1774,8 @@ inline QualType::GCAttrTypes QualType::getObjCGCAttr() const {
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;
}