================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to