forked from OSchip/llvm-project
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:
parent
97ad7b689e
commit
2300ad57a0
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue