================
@@ -12806,6 +12810,19 @@ namespace {
         HandleValue(Arg->IgnoreParenImpCasts());
     }
 
+    void VisitLambdaExpr(LambdaExpr *E) {
+      if (!isInCXXOperatorCall) {
+        Inherited::VisitLambdaExpr(E);
+        return;
+      }
+
+      for (const auto &init : E->capture_inits())
+        if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(init))
+          HandleDeclRefExpr(DRE);
+        else
----------------
erichkeane wrote:

```suggestion
        else if (Init)
```

According to the base implementation of this, we end up expecting this could be 
null sometimes.

https://github.com/llvm/llvm-project/pull/129198
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to