aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaInherit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Sema/SemaInherit.cpp')
-rw-r--r--lib/Sema/SemaInherit.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Sema/SemaInherit.cpp b/lib/Sema/SemaInherit.cpp
index cb58063d84..0772bc3c1e 100644
--- a/lib/Sema/SemaInherit.cpp
+++ b/lib/Sema/SemaInherit.cpp
@@ -153,7 +153,8 @@ bool Sema::LookupInBases(CXXRecordDecl *Class,
} else {
Paths.ScratchPath.Decls = BaseRecord->lookup(Criteria.Name);
while (Paths.ScratchPath.Decls.first != Paths.ScratchPath.Decls.second) {
- if (Criteria.Criteria.isLookupResult(*Paths.ScratchPath.Decls.first)) {
+ if (isAcceptableLookupResult(*Paths.ScratchPath.Decls.first,
+ Criteria.NameKind, Criteria.IDNS)) {
FoundPathToThisBase = true;
break;
}