diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp index 4c4a42134dd4a..4072025376768 100644 --- a/clang/lib/CodeGen/CGExpr.cpp +++ b/clang/lib/CodeGen/CGExpr.cpp @@ -4701,7 +4701,7 @@ LValue CodeGenFunction::EmitLValueForLambdaField(const FieldDecl *Field, if (ThisTy != LambdaTy) { const CXXCastPath &BasePathArray = getContext().LambdaCastPaths.at(MD); Address Base = GetAddressOfBaseClass( - LambdaLV.getAddress(*this), ThisTy, BasePathArray.begin(), + LambdaLV.getAddress(), ThisTy, BasePathArray.begin(), BasePathArray.end(), /*NullCheckValue=*/false, SourceLocation()); LambdaLV = MakeAddrLValue(Base, QualType{LambdaTy->getTypeForDecl(), 0}); }