diff options
author | Craig Topper <craig.topper@sifive.com> | 2023-12-04 11:11:37 -0800 |
---|---|---|
committer | Vitaly Buka <vitalybuka@google.com> | 2023-12-14 20:25:16 -0800 |
commit | 2a21260ea8a5cfb7d2e703d991a3e772fd2ad66c (patch) | |
tree | 9a73f7f1be3609fa3039b34d93b683f41f97bc65 /llvm/lib/ProfileData/Coverage/CoverageMapping.cpp | |
parent | f4b5be1ecdc85ca4257b739afb8d57e23c7a8030 (diff) | |
download | llvm-2a21260ea8a5cfb7d2e703d991a3e772fd2ad66c.zip llvm-2a21260ea8a5cfb7d2e703d991a3e772fd2ad66c.tar.gz llvm-2a21260ea8a5cfb7d2e703d991a3e772fd2ad66c.tar.bz2 |
[SelectionDAG] Use getVectorElementPointer in DAGCombiner::replaceStoreOfInsertLoad. (#74249)
This ensures we clip the index to be in bounds of the vector we are
inserting into. If the index is out of bounds the results of the insert
element is poison. If we don't clip the index we can write memory that
was not part of the original store.
Fixes #74248 #75557.
Diffstat (limited to 'llvm/lib/ProfileData/Coverage/CoverageMapping.cpp')
0 files changed, 0 insertions, 0 deletions