aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/AST/CXXInheritance.cpp
diff options
context:
space:
mode:
authorLiming Liu <gangliugangliu.ml@outlook.com>2023-01-29 14:27:12 +0800
committerLiming Liu <gangliugangliu.ml@outlook.com>2023-01-29 14:37:13 +0800
commitd6d29dc4fa9cbb6d4d5622f9fea4697669edf214 (patch)
treed8746794f69dc0263bb5237327d3583430a64b67 /clang/lib/AST/CXXInheritance.cpp
parent3d7a59bdc0850fee0ad31686f038ae5abf88b7f2 (diff)
downloadllvm-d6d29dc4fa9cbb6d4d5622f9fea4697669edf214.zip
llvm-d6d29dc4fa9cbb6d4d5622f9fea4697669edf214.tar.gz
llvm-d6d29dc4fa9cbb6d4d5622f9fea4697669edf214.tar.bz2
Revert commit 01adf96ebc86 because it caused "Unhandled DeclRefExpr" errors.
Diffstat (limited to 'clang/lib/AST/CXXInheritance.cpp')
-rw-r--r--clang/lib/AST/CXXInheritance.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/clang/lib/AST/CXXInheritance.cpp b/clang/lib/AST/CXXInheritance.cpp
index 175e461..25de2a2 100644
--- a/clang/lib/AST/CXXInheritance.cpp
+++ b/clang/lib/AST/CXXInheritance.cpp
@@ -64,16 +64,14 @@ void CXXBasePaths::swap(CXXBasePaths &Other) {
std::swap(DetectedVirtual, Other.DetectedVirtual);
}
-bool CXXRecordDecl::isDerivedFrom(const CXXRecordDecl *Base,
- bool LookupIndependent) const {
+bool CXXRecordDecl::isDerivedFrom(const CXXRecordDecl *Base) const {
CXXBasePaths Paths(/*FindAmbiguities=*/false, /*RecordPaths=*/false,
/*DetectVirtual=*/false);
- return isDerivedFrom(Base, Paths, LookupIndependent);
+ return isDerivedFrom(Base, Paths);
}
bool CXXRecordDecl::isDerivedFrom(const CXXRecordDecl *Base,
- CXXBasePaths &Paths,
- bool LookupIndependent) const {
+ CXXBasePaths &Paths) const {
if (getCanonicalDecl() == Base->getCanonicalDecl())
return false;
@@ -85,7 +83,7 @@ bool CXXRecordDecl::isDerivedFrom(const CXXRecordDecl *Base,
return Specifier->getType()->getAsRecordDecl() &&
FindBaseClass(Specifier, Path, BaseDecl);
},
- Paths, LookupIndependent);
+ Paths);
}
bool CXXRecordDecl::isVirtuallyDerivedFrom(const CXXRecordDecl *Base) const {