================
@@ -8367,7 +8367,13 @@ bool LValueExprEvaluator::VisitVarDecl(const Expr *E,
const VarDecl *VD) {
if (auto *FD = Info.CurrentCall->LambdaCaptureFields.lookup(VD)) {
// Start with 'Result' referring to the complete closure object...
- Result = *Info.CurrentCall->This;
+ if (auto *MD = cast<CXXMethodDecl>(Info.CurrentCall->Callee);
+ MD->isExplicitObjectMemberFunction()) {
+ APValue *RefValue =
+ Info.getParamSlot(Info.CurrentCall->Arguments,
MD->getParamDecl(0));
+ Result.setFrom(Info.Ctx, *RefValue);
----------------
shafik wrote:
So what is the difference between calling `setFrom` and assigning to `Result`
using assignment here?
https://github.com/llvm/llvm-project/pull/68090
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits