We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5232617 commit fdddae5Copy full SHA for fdddae5
clang/lib/Sema/SemaDecl.cpp
@@ -20449,13 +20449,15 @@ Decl *Sema::ActOnFileScopeAsmDecl(Expr *expr,
20449
TopLevelStmtDecl *Sema::ActOnStartTopLevelStmtDecl(Scope *S) {
20450
auto *New = TopLevelStmtDecl::Create(Context, /*Statement=*/nullptr);
20451
PushFunctionScope();
20452
+ PushCompoundScope(false);
20453
PushDeclContext(S, New);
20454
return New;
20455
}
20456
20457
void Sema::ActOnFinishTopLevelStmtDecl(TopLevelStmtDecl *D, Stmt *Statement) {
20458
D->setStmt(Statement);
20459
PopDeclContext();
20460
+ PopCompoundScope();
20461
PopFunctionScopeInfo();
20462
20463
0 commit comments