File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
lldb/source/Plugins/ExpressionParser/Clang Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1210,15 +1210,14 @@ ClangASTImporter::ASTImporterDelegate::ImportImpl(Decl *From) {
1210
1210
DeclContext::lookup_result lr = dc->lookup (*dn_or_err);
1211
1211
for (clang::Decl *candidate : lr) {
1212
1212
if (candidate->getKind () == From->getKind ()) {
1213
- RegisterImportedDecl (From, candidate);
1214
-
1215
- // If we're dealing with redecl chains. We want to find the definition,
1213
+ // If we're dealing with redecl chains, we want to find the definition,
1216
1214
// so skip if the decl is actually just a forwad decl.
1217
1215
if (TypeSystemClang::UseRedeclCompletion ())
1218
1216
if (auto *tag_decl = llvm::dyn_cast<TagDecl>(candidate);
1219
1217
!tag_decl || !tag_decl->getDefinition ())
1220
1218
continue ;
1221
1219
1220
+ RegisterImportedDecl (From, candidate);
1222
1221
m_decls_to_ignore.insert (candidate);
1223
1222
return candidate;
1224
1223
}
You can’t perform that action at this time.
0 commit comments