From: Aaron Ballman Date: Thu, 19 Dec 2013 13:20:36 +0000 (+0000) Subject: Switched code from using hasAttr followed by getAttr to simply call getAttr directly. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=886611f0a7f1472067f00ec6ea2766540065a2bb;p=clang Switched code from using hasAttr followed by getAttr to simply call getAttr directly. No functional changes intended. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197676 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaExprObjC.cpp b/lib/Sema/SemaExprObjC.cpp index 8f0b90b3be..72c3471863 100644 --- a/lib/Sema/SemaExprObjC.cpp +++ b/lib/Sema/SemaExprObjC.cpp @@ -3095,8 +3095,7 @@ static inline T *getObjCBridgeAttr(const TypedefType *TD) { QT = QT->getPointeeType(); if (const RecordType *RT = QT->getAs()) if (RecordDecl *RD = RT->getDecl()) - if (RD->hasAttr()) - return RD->getAttr(); + return RD->getAttr(); } return 0; }