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

via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 18 18:22:08 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.
----------------
Sirraide wrote:

No problem—writing descriptive comments is hard; I had to think a while about how to phrase this, and I don’t think the way I phrased it is ideal either, but it’s hopefully good enough.

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


More information about the cfe-commits mailing list