aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
diff options
context:
space:
mode:
authorRyosuke Niwa <rniwa@webkit.org>2024-05-09 21:32:28 -0700
committerGitHub <noreply@github.com>2024-05-09 21:32:28 -0700
commit21be8182239a9c87a50071d122d5532037fd8305 (patch)
tree1f67a81d4eb6577a68e230aa2cd8e08272ed2c95 /llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
parent181e2e8fb9efe6e8f3f7fc094516f125659b687c (diff)
downloadllvm-21be8182239a9c87a50071d122d5532037fd8305.zip
llvm-21be8182239a9c87a50071d122d5532037fd8305.tar.gz
llvm-21be8182239a9c87a50071d122d5532037fd8305.tar.bz2
[analyzer] Support determining origins in a conditional operator in WebKit checkers. (#91143)
This PR adds the support for determining the origin of a pointer in a conditional operator. Because such an expression can have two distinct origins each of which needs to be visited, this PR refactors tryToFindPtrOrigin to take a callback instead of returning a pair. The callback is called for the second operand and the third operand of the conditioanl operator (i.e. E2 and E3 in E1 ? E2 : E3). Also treat nullptr and integer literal as safe pointer origins in the local variable checker.
Diffstat (limited to 'llvm/lib/ProfileData/Coverage/CoverageMapping.cpp')
0 files changed, 0 insertions, 0 deletions