diff options
author | Nikita Popov <npopov@redhat.com> | 2022-07-01 14:27:38 +0200 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2022-07-01 14:31:44 +0200 |
commit | fabe915705472e2c06ed1aa9a90620462594e82f (patch) | |
tree | b81d9cad2b8ee9f11e162c04f0d1423965822611 /lldb/packages/Python/lldbsuite/test/lldbtest.py | |
parent | ab372cdd6ff4e6ccb1fdd83a421914cddfb30e58 (diff) | |
download | llvm-fabe915705472e2c06ed1aa9a90620462594e82f.zip llvm-fabe915705472e2c06ed1aa9a90620462594e82f.tar.gz llvm-fabe915705472e2c06ed1aa9a90620462594e82f.tar.bz2 |
[SimplifyLibCalls] Use inbounds GEP
When converting strchr(p, '\0') to p + strlen(p) we know that
strlen() must return an offset that is inbounds of the allocated
object (otherwise it would be UB), so we can use an inbounds GEP.
An equivalent argument can be made for the other cases.
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lldbtest.py')
0 files changed, 0 insertions, 0 deletions