aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorBalazs Benics <benicsbalazs@gmail.com>2023-12-04 17:53:23 +0100
committerBalazs Benics <benicsbalazs@gmail.com>2023-12-28 16:06:21 +0100
commita49cf6c14ad498244fee6026da59cfdcdad6b80c (patch)
tree6dfc32f74575b7153e5552c0186d86117b0670b7 /flang/lib/Frontend/CompilerInvocation.cpp
parentd1856b2f18c412f8ffbeee30e6e0316c197c143c (diff)
downloadllvm-a49cf6c14ad498244fee6026da59cfdcdad6b80c.zip
llvm-a49cf6c14ad498244fee6026da59cfdcdad6b80c.tar.gz
llvm-a49cf6c14ad498244fee6026da59cfdcdad6b80c.tar.bz2
[analyzer] Fix "sprintf" parameter modeling in CStringChecker
`CE->getCalleeDecl()` returns `VarDecl` if the callee is actually a function pointer variable. Consequently, calling `getAsFunction()` will return null. To workaround the case, we should use the `CallEvent::parameters()`, which will internally recover the function being called and do the right thing. Fixes #74269 Depends on "[analyzer][NFC] Prefer CallEvent over CallExpr in APIs"
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions