[clang] [clang] pop explicit to keep context stack balance (PR #77312)
Qizhi Hu via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 8 17:05:32 PST 2024
https://github.com/jcsxky updated https://github.com/llvm/llvm-project/pull/77312
>From f5813ab00fb26148b79f8a419436abf14ad9ee34 Mon Sep 17 00:00:00 2001
From: huqizhi <huqizhi at feysh.com>
Date: Mon, 8 Jan 2024 22:15:09 +0800
Subject: [PATCH] [clang] pop explicit to keep context stack balance
---
clang/lib/Parse/ParseDecl.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp
index b60ae293ef8c20..6b16320f86721b 100644
--- a/clang/lib/Parse/ParseDecl.cpp
+++ b/clang/lib/Parse/ParseDecl.cpp
@@ -2669,6 +2669,7 @@ Decl *Parser::ParseDeclarationAfterDeclaratorAndAttributes(
/*Braced=*/false);
CalledSignatureHelp = true;
}
+ InitScope.pop();
Actions.ActOnInitializerError(ThisDecl);
SkipUntil(tok::r_paren, StopAtSemi);
} else {
More information about the cfe-commits
mailing list