diff options
| author | John McCall <rjmccall@apple.com> | 2009-09-21 23:43:11 +0000 |
|---|---|---|
| committer | John McCall <rjmccall@apple.com> | 2009-09-21 23:43:11 +0000 |
| commit | 9dd450bb781484ca4b870529f89842541045c153 (patch) | |
| tree | b2033fb4eef5442d9d080df4ae39137b696dcd4e /clang/lib/Analysis/CheckNSError.cpp | |
| parent | fd68c7bdc0ea3a61b90380eab3db89230c6b5f27 (diff) | |
| download | bcm5719-llvm-9dd450bb781484ca4b870529f89842541045c153.tar.gz bcm5719-llvm-9dd450bb781484ca4b870529f89842541045c153.zip | |
Change all the Type::getAsFoo() methods to specializations of Type::getAs().
Several of the existing methods were identical to their respective
specializations, and so have been removed entirely. Several more 'leaf'
optimizations were introduced.
The getAsFoo() methods which imposed extra conditions, like
getAsObjCInterfacePointerType(), have been left in place.
llvm-svn: 82501
Diffstat (limited to 'clang/lib/Analysis/CheckNSError.cpp')
| -rw-r--r-- | clang/lib/Analysis/CheckNSError.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Analysis/CheckNSError.cpp b/clang/lib/Analysis/CheckNSError.cpp index 7e596435d00..8086da58826 100644 --- a/clang/lib/Analysis/CheckNSError.cpp +++ b/clang/lib/Analysis/CheckNSError.cpp @@ -166,7 +166,7 @@ bool NSErrorCheck::CheckNSErrorArgument(QualType ArgTy) { return false; const ObjCObjectPointerType* PT = - PPT->getPointeeType()->getAsObjCObjectPointerType(); + PPT->getPointeeType()->getAs<ObjCObjectPointerType>(); if (!PT) return false; @@ -185,7 +185,7 @@ bool NSErrorCheck::CheckCFErrorArgument(QualType ArgTy) { const PointerType* PPT = ArgTy->getAs<PointerType>(); if (!PPT) return false; - const TypedefType* TT = PPT->getPointeeType()->getAsTypedefType(); + const TypedefType* TT = PPT->getPointeeType()->getAs<TypedefType>(); if (!TT) return false; return TT->getDecl()->getIdentifier() == II; |

