[clang] [Lifetime Safety] Normalize call arguments in AnyCall (PR #217838)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Aug 22 03:23:24 PDT 2026
================
@@ -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:
Yes, the below code will not have such issue. Will implement this there.
https://github.com/llvm/llvm-project/pull/217838
More information about the cfe-commits
mailing list