diff options
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-07-01 23:01:46 +0000 |
|---|---|---|
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-07-01 23:01:46 +0000 |
| commit | 8e25253e14a0ff6468a0d0cb30ec280130d46b30 (patch) | |
| tree | 26d69883051d820d5c6e0b94548894a6844bdc36 /clang/lib/AST | |
| parent | 4bbbecfb8cc9879ba1ef789d05ad1a5054da3946 (diff) | |
| download | bcm5719-llvm-8e25253e14a0ff6468a0d0cb30ec280130d46b30.tar.gz bcm5719-llvm-8e25253e14a0ff6468a0d0cb30ec280130d46b30.zip | |
-Fix mistake in ASTContext::getInnerObjCOwnership noticed by Doug
-Remove unnecessary 'return'.
-Remove unnecessary 'if' check (llvm_unreachable make sure attrStr will be non-null)
-Add a test of transferring ownership to a reference cast type.
llvm-svn: 134285
Diffstat (limited to 'clang/lib/AST')
| -rw-r--r-- | clang/lib/AST/ASTContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index aca011f9df9..53fb7129fdf 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -3523,7 +3523,7 @@ Qualifiers::ObjCLifetime ASTContext::getInnerObjCOwnership(QualType T) const { else if (const PointerType *PT = T->getAs<PointerType>()) T = PT->getPointeeType(); else if (const ReferenceType *RT = T->getAs<ReferenceType>()) - RT->getPointeeType(); + T = RT->getPointeeType(); else break; } |

