[clang] [clang][CodeGen] Detect backward jumps for C lifetime markers (PR #238919)
Eli Friedman via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 25 16:50:39 PST 2026
================
@@ -8064,8 +8064,16 @@ void Parser::ParseBracketDeclarator(Declarator &D) {
if (getLangOpts().CPlusPlus) {
NumElements = ParseArrayBoundExpression();
} else {
- EnterExpressionEvaluationContext Unevaluated(
+ EnterExpressionEvaluationContext ConstantEvaluated(
Actions, Sema::ExpressionEvaluationContext::ConstantEvaluated);
+ Actions.ExprEvalContexts.back().InConditionallyConstantEvaluateContext =
----------------
efriedma-quic wrote:
See also https://github.com/llvm/llvm-project/pull/229697#discussion_r4545610269 . I don't think we're handling this right in general.
https://github.com/llvm/llvm-project/pull/238919
More information about the cfe-commits
mailing list