[clang] [Clang] Only check exprs that might be immediate escalating in evaluated contexts (PR #93187)

Mariya Podchishchaeva via cfe-commits cfe-commits at lists.llvm.org
Fri May 24 02:43:48 PDT 2024


================
@@ -5146,6 +5153,12 @@ class Sema final : public SemaBase {
     return ExprEvalContexts.back();
   };
 
+  const ExpressionEvaluationContextRecord &parentEvaluationContext() const {
+    assert(ExprEvalContexts.size() >= 2 &&
+           "Must be in an expression evaluation context");
+    return ExprEvalContexts[ExprEvalContexts.size() - 2];
----------------
Fznamznon wrote:

Submitted https://github.com/llvm/llvm-project/issues/93284

https://github.com/llvm/llvm-project/pull/93187


More information about the cfe-commits mailing list