diff options
| -rw-r--r-- | lldb/source/Symbol/ClangASTType.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/source/Symbol/ClangASTType.cpp b/lldb/source/Symbol/ClangASTType.cpp index 317e18b6566..7d97c35405f 100644 --- a/lldb/source/Symbol/ClangASTType.cpp +++ b/lldb/source/Symbol/ClangASTType.cpp @@ -4080,8 +4080,9 @@ ClangASTType::GetIndexOfChildMemberWithName (const char *name, clang::DeclarationName decl_name(&ident_ref); clang::CXXBasePaths paths; - if (cxx_record_decl->lookupInBases(clang::CXXRecordDecl::FindOrdinaryMember, - decl_name.getAsOpaquePtr(), + if (cxx_record_decl->lookupInBases([decl_name](const CXXBaseSpecifier *specifier, CXXBasePath &path) { + return clang::CXXRecordDecl::FindOrdinaryMember(specifier, path, decl_name); + }, paths)) { clang::CXXBasePaths::const_paths_iterator path, path_end = paths.end(); |

