================
@@ -13714,6 +13714,12 @@ TreeTransform<Derived>::TransformLambdaExpr(LambdaExpr
*E) {
// Capturing 'this' is trivial.
if (C->capturesThis()) {
+ // We need ThisType here.
+ Sema::CXXThisScopeRAII ThisScope(
+ getSema(),
+ dyn_cast_or_null<CXXRecordDecl>(
----------------
Sirraide wrote:
```suggestion
dyn_cast_if_present<CXXRecordDecl>(
```
`cast_or_null` and friends are deprecated.
https://github.com/llvm/llvm-project/pull/85565
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits