aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaInherit.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-02-28 01:32:25 +0000
committerDouglas Gregor <dgregor@apple.com>2009-02-28 01:32:25 +0000
commitc1efaecf0373f1a55c5ef4c234357cf726fc0600 (patch)
treec449e41d3715898f32c75c618a20dea1b3910fd2 /lib/Sema/SemaInherit.cpp
parentaca13a7df407b32a6ee497a0646f83184edefb49 (diff)
Eliminate CXXRecordType
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65671 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaInherit.cpp')
-rw-r--r--lib/Sema/SemaInherit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sema/SemaInherit.cpp b/lib/Sema/SemaInherit.cpp
index fe1c96b09d..a9135a3b3c 100644
--- a/lib/Sema/SemaInherit.cpp
+++ b/lib/Sema/SemaInherit.cpp
@@ -87,7 +87,7 @@ bool Sema::IsDerivedFrom(QualType Derived, QualType Base, BasePaths &Paths) {
return false;
Paths.setOrigin(Derived);
- return LookupInBases(cast<CXXRecordType>(Derived->getAsRecordType())->getDecl(),
+ return LookupInBases(cast<CXXRecordDecl>(Derived->getAsRecordType()->getDecl()),
MemberLookupCriteria(Base), Paths);
}
@@ -123,7 +123,7 @@ bool Sema::LookupInBases(CXXRecordDecl *Class,
if (Paths.isDetectingVirtual() && Paths.DetectedVirtual == 0) {
// If this is the first virtual we find, remember it. If it turns out
// there is no base path here, we'll reset it later.
- Paths.DetectedVirtual = cast<CXXRecordType>(BaseType->getAsRecordType());
+ Paths.DetectedVirtual = BaseType->getAsRecordType();
SetVirtual = true;
}
} else