[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:18:23 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,
----------------
Sirraide wrote:
That’s probably a better name, yeah; `GetLambdaCaptureAsLValue` is rather clumsy, but I couldn’t think of anything better myself.
https://github.com/llvm/llvm-project/pull/81102
More information about the cfe-commits
mailing list