summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-11-30 18:43:52 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-11-30 18:43:52 +0000
commit89b660c774bda569a31ba1c67a69a3ddb9cedf5c (patch)
tree38a01148dc535d4afd920ffbcbfae220edf1d074 /clang/lib
parent505ddaa4dc76317435eec4bae666b30761d3d11e (diff)
downloadbcm5719-llvm-89b660c774bda569a31ba1c67a69a3ddb9cedf5c.tar.gz
bcm5719-llvm-89b660c774bda569a31ba1c67a69a3ddb9cedf5c.zip
Fix a crash when ivar type is a __strong SEL. Fallout from
recent change to make SEL a builtin type (fixes radar 7425510). llvm-svn: 90145
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/AST/ASTContext.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index 2579a6e8795..6c9ecf089b9 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/lib/AST/ASTContext.cpp
@@ -3413,13 +3413,13 @@ void ASTContext::getObjCEncodingForTypeImpl(QualType T, std::string& S,
return;
}
- if (isObjCSelType(T)) {
- S += ':';
- return;
- }
-
if (const PointerType *PT = T->getAs<PointerType>()) {
+ if (PT->isObjCSelType()) {
+ S += ':';
+ return;
+ }
QualType PointeeTy = PT->getPointeeType();
+
bool isReadOnly = false;
// For historical/compatibility reasons, the read-only qualifier of the
// pointee gets emitted _before_ the '^'. The read-only qualifier of
OpenPOWER on IntegriCloud