File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -20521,17 +20521,18 @@ Decl *Sema::ActOnFileScopeAsmDecl(Expr *expr,
20521
20521
20522
20522
TopLevelStmtDecl *Sema::ActOnStartTopLevelStmtDecl(Scope *S) {
20523
20523
auto *New = TopLevelStmtDecl::Create(Context, /*Statement=*/nullptr);
20524
+ CurContext->addDecl(New);
20525
+ PushDeclContext(S, New);
20524
20526
PushFunctionScope();
20525
20527
PushCompoundScope(false);
20526
- PushDeclContext(S, New);
20527
20528
return New;
20528
20529
}
20529
20530
20530
20531
void Sema::ActOnFinishTopLevelStmtDecl(TopLevelStmtDecl *D, Stmt *Statement) {
20531
20532
D->setStmt(Statement);
20532
- PopDeclContext();
20533
20533
PopCompoundScope();
20534
20534
PopFunctionScopeInfo();
20535
+ PopDeclContext();
20535
20536
}
20536
20537
20537
20538
void Sema::ActOnPragmaRedefineExtname(IdentifierInfo* Name,
You can’t perform that action at this time.
0 commit comments