diff options
author | Ziqing Luo <ziqing@udel.edu> | 2025-07-15 17:48:20 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-15 16:48:20 +0800 |
commit | 29436737baf8675ec98c8f738e291acb44eacd85 (patch) | |
tree | e9e2458febe73727e3c0649df5e335d3eaa500bc /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | 7c30897b4cff758321d864adf1d58533eedbdb98 (diff) | |
download | llvm-29436737baf8675ec98c8f738e291acb44eacd85.zip llvm-29436737baf8675ec98c8f738e291acb44eacd85.tar.gz llvm-29436737baf8675ec98c8f738e291acb44eacd85.tar.bz2 |
[NFC][-Wunsafe-buffer-usage] Refactor safe pattern check for pointer-size pairs (#145626)
Refactor the safe pattern analysis of pointer and size expression pairs
so that the check can be re-used in more places. For example, it can be
used to check whether the following cases are safe:
- `std::span<T>{ptr, size} // span construction`
- `snprintf(ptr, size, "%s", ...) // unsafe libc call`
- `printf("%.*s", size, ptr) // unsafe libc call`
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions