[clang] [clang][ASTImporter] Not using primary context in lookup table (PR #118466)

Michael Buch via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 18 04:00:32 PST 2024


================
@@ -3165,6 +3165,7 @@ ExpectedDecl ASTNodeImporter::VisitRecordDecl(RecordDecl *D) {
                 if (Error Err = ImportImplicitMethods(DCXX, FoundCXX))
                   return std::move(Err);
             }
+            return FoundDef;
----------------
Michael137 wrote:

So currently what happens is that we create a new decl and connect it to `FoundDef` on a redeclaration chain? LLDB is particularly sensitive to this particular code-path, so I'd say it's best to try do this in a separate PR so we can focus in on this

https://github.com/llvm/llvm-project/pull/118466


More information about the cfe-commits mailing list