File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -7230,8 +7230,9 @@ void ASTWriter::CompletedImplicitDefinition(const FunctionDecl *D) {
7230
7230
if (!D->isFromASTFile ())
7231
7231
return ; // Declaration not imported from PCH.
7232
7232
7233
+ // The function definition may not have a body due to parsing errors.
7233
7234
if (!D->doesThisDeclarationHaveABody ())
7234
- return ; // The function definition may not have a body due to parsing errors.
7235
+ return ;
7235
7236
7236
7237
// Implicit function decl from a PCH was defined.
7237
7238
DeclUpdates[D].push_back (DeclUpdate (UPD_CXX_ADDED_FUNCTION_DEFINITION));
@@ -7251,8 +7252,10 @@ void ASTWriter::FunctionDefinitionInstantiated(const FunctionDecl *D) {
7251
7252
assert (!WritingAST && " Already writing the AST!" );
7252
7253
if (!D->isFromASTFile ())
7253
7254
return ;
7255
+
7256
+ // The function definition may not have a body due to parsing errors.
7254
7257
if (!D->doesThisDeclarationHaveABody ())
7255
- return ; // The function definition may not have a body due to parsing errors.
7258
+ return ;
7256
7259
7257
7260
DeclUpdates[D].push_back (DeclUpdate (UPD_CXX_ADDED_FUNCTION_DEFINITION));
7258
7261
}
You can’t perform that action at this time.
0 commit comments