aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorArseniy Zaostrovnykh <necto.ne@gmail.com>2024-09-03 14:06:57 +0200
committerGitHub <noreply@github.com>2024-09-03 14:06:57 +0200
commitaa4f81efb99c93da3283ff3178be8db51cd655e2 (patch)
tree091f77aaf7c2fe45a2ff945f6921fa1f7021225a /llvm/lib/CodeGen/MachineInstr.cpp
parent0748f4227cd6a4a32b155d4bb9ad3f07e1b54bfe (diff)
downloadllvm-aa4f81efb99c93da3283ff3178be8db51cd655e2.zip
llvm-aa4f81efb99c93da3283ff3178be8db51cd655e2.tar.gz
llvm-aa4f81efb99c93da3283ff3178be8db51cd655e2.tar.bz2
[analyzer] Fix false positive for stack-addr leak on simple param ptr (#107003)
Assigning to a pointer parameter does not leak the stack address because it stays within the function and is not shared with the caller. Previous implementation reported any association of a pointer parameter with a local address, which is too broad. This fix enforces that the pointer to a stack variable is related by at least one level of indirection. CPP-5642 Fixes #106834
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions