================
@@ -554,6 +555,8 @@ getLambdaProperties(const MatchFinder::MatchResult &Result) 
{
   LP.Callable.Materialization = getCallableMaterialization(Result);
   LP.Callable.Decl =
       getCallMethodDecl(Result, LP.Callable.Type, LP.Callable.Materialization);
+  if (LP.Callable.Decl)
+    LP.Callable.DoesReturn = !LP.Callable.Decl->getReturnType()->isVoidType();
----------------
PiotrZSL wrote:

check here also that return type is not null, just in case..., you may also try 
to check a canonical type, in case that void would be somehow hidden behind 
some typedefs/templates or something

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

Reply via email to