ABataev added a subscriber: ABataev.
Comment at: lib/Sema/SemaChecking.cpp:6588
@@ -6587,2 +6587,3 @@
stackE = EvalAddr(RetValExp, refVars, /*ParentDecl=*/nullptr);
+
} else if (lhsType->isReferenceType()) {
Remove empty line
Comment at:
rsmith added a comment.
> But not here, because we would have to verify that the pointer in lam wasn't
> mutated in a previous call of the lambda:
Isn't that guaranteed, because the lambda is not marked `mutable`?
Comment at: lib/Sema/SemaChecking.cpp:6594
@@ -6590,1 +6593,3