summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/lib/Sema/SemaExprObjC.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaExprObjC.cpp b/clang/lib/Sema/SemaExprObjC.cpp
index 8f0b90b3be2..72c3471863c 100644
--- a/clang/lib/Sema/SemaExprObjC.cpp
+++ b/clang/lib/Sema/SemaExprObjC.cpp
@@ -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;
}
OpenPOWER on IntegriCloud