r195070 - ObjectiveC objc_bridge. Minor refactoring.
Fariborz Jahanian
fjahanian at apple.com
Mon Nov 18 17:38:23 PST 2013
Author: fjahanian
Date: Mon Nov 18 19:38:23 2013
New Revision: 195070
URL: http://llvm.org/viewvc/llvm-project?rev=195070&view=rev
Log:
ObjectiveC objc_bridge. Minor refactoring.
// rdar://15454846
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=195070&r1=195069&r2=195070&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExprObjC.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExprObjC.cpp Mon Nov 18 19:38:23 2013
@@ -3170,8 +3170,8 @@ static inline ObjCBridgeAttr *getObjCBri
QualType QT = TDNDecl->getUnderlyingType();
if (QT->isPointerType()) {
QT = QT->getPointeeType();
- if (QT->isStructureType() || QT->isUnionType() || QT->isClassType())
- if (RecordDecl *RD = QT->getAs<RecordType>()->getDecl())
+ if (const RecordType *RT = QT->getAs<RecordType>())
+ if (RecordDecl *RD = RT->getDecl())
if (RD->hasAttr<ObjCBridgeAttr>())
return RD->getAttr<ObjCBridgeAttr>();
}
More information about the cfe-commits
mailing list