[clang] [Clang][Sema] Properly get captured 'this' pointer in lambdas with an explicit object parameter in constant evaluator (PR #81102)

via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 4 05:15:06 PST 2024


================
@@ -8480,6 +8480,54 @@ class LValueExprEvaluator
 };
 } // end anonymous namespace
 
+/// Get an lvalue to a field of a lambda's closure type.
+static bool GetLambdaCaptureAsLValue(EvalInfo &Info, const Expr *E,
----------------
cor3ntin wrote:

```suggestion
static bool HandleLambdaCapture(EvalInfo &Info, const Expr *E,
```

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


More information about the cfe-commits mailing list