================
@@ -1090,9 +1081,12 @@ void FactsGenerator::handleLifetimeCaptureBy(const 
FunctionDecl *FD,
 }
 
 void FactsGenerator::handleFunctionCall(const Expr *Call,
-                                        const FunctionDecl *FD,
-                                        ArrayRef<const Expr *> Args,
                                         bool IsGslConstruction) {
+  FunctionCallInfo CallInfo(Call);
+  if (!CallInfo.FD)
+    return;
+  const FunctionDecl *FD = CallInfo.FD;
+  llvm::ArrayRef<const Expr *> Args = CallInfo.Args;
----------------
iitianpushkar wrote:

I tried this but the build completed with `warning: captured structured 
bindings are a C++20 extension` because FD and Args are later captured in a 
lambda here. 
So, will it be ok ? 

https://github.com/llvm/llvm-project/pull/217838
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to