================
@@ -7230,6 +7230,9 @@ void ASTWriter::CompletedImplicitDefinition(const
FunctionDecl *D) {
if (!D->isFromASTFile())
return; // Declaration not imported from PCH.
+ if (!D->doesThisDeclarationHaveABody())
+ return; // The function definition may not have a body due to parsing
errors.
----------------
alejandro-alvarez-sonarsource wrote:
Moved
https://github.com/llvm/llvm-project/pull/121550
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits