We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5aa374d commit 83265cfCopy full SHA for 83265cf
clang/lib/Sema/SemaDecl.cpp
@@ -20522,13 +20522,15 @@ Decl *Sema::ActOnFileScopeAsmDecl(Expr *expr,
20522
TopLevelStmtDecl *Sema::ActOnStartTopLevelStmtDecl(Scope *S) {
20523
auto *New = TopLevelStmtDecl::Create(Context, /*Statement=*/nullptr);
20524
PushFunctionScope();
20525
+ PushCompoundScope(false);
20526
PushDeclContext(S, New);
20527
return New;
20528
}
20529
20530
void Sema::ActOnFinishTopLevelStmtDecl(TopLevelStmtDecl *D, Stmt *Statement) {
20531
D->setStmt(Statement);
20532
PopDeclContext();
20533
+ PopCompoundScope();
20534
PopFunctionScopeInfo();
20535
20536
0 commit comments