[cfe-commits] r163684 - /cfe/trunk/lib/AST/CXXInheritance.cpp
Ted Kremenek
kremenek at apple.com
Tue Sep 11 23:50:29 PDT 2012
Author: kremenek
Date: Wed Sep 12 01:50:29 2012
New Revision: 163684
URL: http://llvm.org/viewvc/llvm-project?rev=163684&view=rev
Log:
Convert a few more getAs cases to castAs where we immediately call a member function.
Modified:
cfe/trunk/lib/AST/CXXInheritance.cpp
Modified: cfe/trunk/lib/AST/CXXInheritance.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/CXXInheritance.cpp?rev=163684&r1=163683&r2=163684&view=diff
==============================================================================
--- cfe/trunk/lib/AST/CXXInheritance.cpp (original)
+++ cfe/trunk/lib/AST/CXXInheritance.cpp Wed Sep 12 01:50:29 2012
@@ -255,7 +255,7 @@
}
} else if (VisitBase) {
CXXRecordDecl *BaseRecord
- = cast<CXXRecordDecl>(BaseSpec->getType()->getAs<RecordType>()
+ = cast<CXXRecordDecl>(BaseSpec->getType()->castAs<RecordType>()
->getDecl());
if (lookupInBases(Context, BaseRecord, BaseMatches, UserData)) {
// C++ [class.member.lookup]p2:
@@ -717,7 +717,7 @@
"Cannot get indirect primary bases for class with dependent bases.");
const CXXRecordDecl *BaseDecl =
- cast<CXXRecordDecl>(I->getType()->getAs<RecordType>()->getDecl());
+ cast<CXXRecordDecl>(I->getType()->castAs<RecordType>()->getDecl());
// Only bases with virtual bases participate in computing the
// indirect primary virtual base classes.
More information about the cfe-commits
mailing list