diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2009-11-30 18:43:52 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-11-30 18:43:52 +0000 |
| commit | 89b660c774bda569a31ba1c67a69a3ddb9cedf5c (patch) | |
| tree | 38a01148dc535d4afd920ffbcbfae220edf1d074 /clang/lib | |
| parent | 505ddaa4dc76317435eec4bae666b30761d3d11e (diff) | |
| download | bcm5719-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.cpp | 10 |
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 |

