diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2013-11-19 01:38:23 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2013-11-19 01:38:23 +0000 |
commit | dae5ec59157fdcc0e2d789c318f3fb421cda78ed (patch) | |
tree | f76181c13801b08aac8e1e9a5ad9cf7d3b93413a | |
parent | 3311f374a889b36b47c2994aa77a27f53cdbe578 (diff) | |
download | llvm-dae5ec59157fdcc0e2d789c318f3fb421cda78ed.tar.gz |
ObjectiveC objc_bridge. Minor refactoring.
// rdar://15454846
llvm-svn: 195070
-rw-r--r-- | clang/lib/Sema/SemaExprObjC.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaExprObjC.cpp b/clang/lib/Sema/SemaExprObjC.cpp index a2399b7ec42c..cc8eacee6103 100644 --- a/clang/lib/Sema/SemaExprObjC.cpp +++ b/clang/lib/Sema/SemaExprObjC.cpp @@ -3170,8 +3170,8 @@ static inline ObjCBridgeAttr *getObjCBridgeAttr(const TypedefType *TD) { 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>(); } |