aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/API/python_api
diff options
context:
space:
mode:
authorTyler Lanphear <tylanphear@gmail.com>2024-05-31 18:34:23 -0700
committerGitHub <noreply@github.com>2024-05-31 18:34:23 -0700
commitd337c504ef3652e9ccd75b21bbc79d010ee6c637 (patch)
tree1466043f7a824fadf882ab03468c7218ee141011 /lldb/test/API/python_api
parent1697030d9d7188473cc4129bd28f848a77d04d3d (diff)
downloadllvm-d337c504ef3652e9ccd75b21bbc79d010ee6c637.zip
llvm-d337c504ef3652e9ccd75b21bbc79d010ee6c637.tar.gz
llvm-d337c504ef3652e9ccd75b21bbc79d010ee6c637.tar.bz2
[SLP][NFCI] Address issues seen in downstream Coverity scan. (#93757)
- Prevent null dereference: if the Mask given to `ShuffleInstructionBuilder::adjustExtracts()` is empty or all-poison, then `VecBase` will be `nullptr` and the call to `castToScalarTyElem(VecBase)` will dereference it. Add an assert to guard against this. - Prevent use of uninitialized scalar: in the unlikely event that `CandidateVFs` is empty, then `AnyProfitableGraph` will be uninitialized in `if` condition following the loop. (This seems like a false-positive, but I submitted this change anyways as initializing bools costs nothing and is generally good practice)
Diffstat (limited to 'lldb/test/API/python_api')
0 files changed, 0 insertions, 0 deletions