forked from OSchip/llvm-project
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:
parent
36a18ffef1
commit
2084f8fb49
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue