File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -6161,17 +6161,14 @@ TinyPtrVector<ValueDecl *> ClangRecordMemberLookup::evaluate(
6161
6161
// Find the results that are actually a member of "recordDecl".
6162
6162
TinyPtrVector<ValueDecl *> result;
6163
6163
ClangModuleLoader *clangModuleLoader = ctx.getClangModuleLoader ();
6164
- for (auto found : directResults) {
6165
- auto named = found.get <clang::NamedDecl *>();
6166
- if (dyn_cast<clang::Decl>(named->getDeclContext ()) !=
6167
- recordDecl->getClangDecl ())
6168
- continue ;
6164
+ for (auto foundEntry : directResults) {
6165
+ auto found = foundEntry.get <clang::NamedDecl *>();
6169
6166
6170
6167
// Don't import constructors on foreign reference types.
6171
- if (isa<clang::CXXConstructorDecl>(named ) && isa<ClassDecl>(recordDecl))
6168
+ if (isa<clang::CXXConstructorDecl>(found ) && isa<ClassDecl>(recordDecl))
6172
6169
continue ;
6173
6170
6174
- auto imported = clangModuleLoader->importDeclDirectly (named );
6171
+ auto imported = clangModuleLoader->importDeclDirectly (found );
6175
6172
if (!imported)
6176
6173
continue ;
6177
6174
You can’t perform that action at this time.
0 commit comments