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

Balázs Kéri via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 18 06:55:33 PST 2024


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

The later `GetImportedOrCreateDecl` returns the "already imported" declaration that was set by the `MapImported` (line 3157) call. So in this case we should return on line 3227.

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


More information about the cfe-commits mailing list