From: Ted Kremenek Date: Wed, 12 Sep 2012 06:50:29 +0000 (+0000) Subject: Convert a few more getAs cases to castAs where we immediately call a member function. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cca178014377d5ee756afba47edb93d76a100b06;p=clang Convert a few more getAs cases to castAs where we immediately call a member function. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163684 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/CXXInheritance.cpp b/lib/AST/CXXInheritance.cpp index d1eb2b11d1..213b214a4e 100644 --- a/lib/AST/CXXInheritance.cpp +++ b/lib/AST/CXXInheritance.cpp @@ -255,7 +255,7 @@ bool CXXBasePaths::lookupInBases(ASTContext &Context, } } else if (VisitBase) { CXXRecordDecl *BaseRecord - = cast(BaseSpec->getType()->getAs() + = cast(BaseSpec->getType()->castAs() ->getDecl()); if (lookupInBases(Context, BaseRecord, BaseMatches, UserData)) { // C++ [class.member.lookup]p2: @@ -717,7 +717,7 @@ CXXRecordDecl::getIndirectPrimaryBases(CXXIndirectPrimaryBaseSet& Bases) const { "Cannot get indirect primary bases for class with dependent bases."); const CXXRecordDecl *BaseDecl = - cast(I->getType()->getAs()->getDecl()); + cast(I->getType()->castAs()->getDecl()); // Only bases with virtual bases participate in computing the // indirect primary virtual base classes.