Switched code from using hasAttr followed by getAttr to simply call getAttr directly.

No functional changes intended.

llvm-svn: 197676
This commit is contained in:
Aaron Ballman 2013-12-19 13:20:36 +00:00
parent 36a18ffef1
commit 2084f8fb49
1 changed files with 1 additions and 2 deletions

View File

@ -3095,8 +3095,7 @@ static inline T *getObjCBridgeAttr(const TypedefType *TD) {
QT = QT->getPointeeType();
if (const RecordType *RT = QT->getAs<RecordType>())
if (RecordDecl *RD = RT->getDecl())
if (RD->hasAttr<T>())
return RD->getAttr<T>();
return RD->getAttr<T>();
}
return 0;
}