aboutsummaryrefslogtreecommitdiff
path: root/lldb/packages/Python/lldbsuite/test/lldbtest.py
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2022-07-01 14:27:38 +0200
committerNikita Popov <npopov@redhat.com>2022-07-01 14:31:44 +0200
commitfabe915705472e2c06ed1aa9a90620462594e82f (patch)
treeb81d9cad2b8ee9f11e162c04f0d1423965822611 /lldb/packages/Python/lldbsuite/test/lldbtest.py
parentab372cdd6ff4e6ccb1fdd83a421914cddfb30e58 (diff)
downloadllvm-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