[clang] [Clang][Sema] Fix a crash in lambda instantiation (PR #85565)

Qizhi Hu via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 18 17:59:31 PDT 2024


================
@@ -13714,6 +13714,12 @@ TreeTransform<Derived>::TransformLambdaExpr(LambdaExpr *E) {
 
     // Capturing 'this' is trivial.
     if (C->capturesThis()) {
+      // We need ThisType when build capture in CheckCXXThisCapture.
----------------
jcsxky wrote:

Ah, I see. I didn't realize to combine test case with the comment to have a better illustration. Sorry for my poor English and expression! I have pushed your suggestion.

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


More information about the cfe-commits mailing list