r197676 - Switched code from using hasAttr followed by getAttr to simply call getAttr directly.
Aaron Ballman
aaron at aaronballman.com
Thu Dec 19 05:20:36 PST 2013
Author: aaronballman
Date: Thu Dec 19 07:20:36 2013
New Revision: 197676
URL: http://llvm.org/viewvc/llvm-project?rev=197676&view=rev
Log:
Switched code from using hasAttr followed by getAttr to simply call getAttr directly.
No functional changes intended.
Modified:
cfe/trunk/lib/Sema/SemaExprObjC.cpp
Modified: cfe/trunk/lib/Sema/SemaExprObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExprObjC.cpp?rev=197676&r1=197675&r2=197676&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExprObjC.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExprObjC.cpp Thu Dec 19 07:20:36 2013
@@ -3095,8 +3095,7 @@ static inline T *getObjCBridgeAttr(const
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;
}
More information about the cfe-commits
mailing list