aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
diff options
context:
space:
mode:
authorMalavika Samak <malavika.samak@gmail.com>2024-10-17 13:48:35 -0700
committerGitHub <noreply@github.com>2024-10-17 13:48:35 -0700
commite913a33fcfbd667e4e3a35919b6bd9c5876a90a3 (patch)
treebee2724b73b779725c849ced8344824f206c9c84 /llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
parente67442486d5efd48235f62b438557bc95193fc48 (diff)
downloadllvm-e913a33fcfbd667e4e3a35919b6bd9c5876a90a3.zip
llvm-e913a33fcfbd667e4e3a35919b6bd9c5876a90a3.tar.gz
llvm-e913a33fcfbd667e4e3a35919b6bd9c5876a90a3.tar.bz2
[-Wunsafe-buffer-usage] Emit a warning if pointer returned by vector::data and array::data is cast to larger type (#111910)
Emit a warning when the raw pointer retrieved from std::vector and std::array instances are cast to a larger type. Such a cast followed by a field dereference to the resulting pointer could cause an OOB access. This is similar to the existing span::data warning. (rdar://136704278) Co-authored-by: MalavikaSamak <malavika2@apple.com>
Diffstat (limited to 'llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp')
0 files changed, 0 insertions, 0 deletions