aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectMemory.cpp
diff options
context:
space:
mode:
authorVince Bridgers <vince.a.bridgers@gmail.com>2022-01-24 10:54:24 -0600
committereinvbri <vince.a.bridgers@ericsson.com>2022-03-31 17:34:56 +0200
commit4d5b824e3df21c9cfa7a14ea746c83d0d41dd3ed (patch)
treec737f2f3310893bb239f88f33e13c9c0166972ac /lldb/source/Commands/CommandObjectMemory.cpp
parentf1cb816f90859af971c30ee19ecfbc81be8fde5e (diff)
downloadllvm-4d5b824e3df21c9cfa7a14ea746c83d0d41dd3ed.zip
llvm-4d5b824e3df21c9cfa7a14ea746c83d0d41dd3ed.tar.gz
llvm-4d5b824e3df21c9cfa7a14ea746c83d0d41dd3ed.tar.bz2
[analyzer] Avoid checking addrspace pointers in cstring checker
This change fixes an assert that occurs in the SMT layer when refuting a finding that uses pointers of two different sizes. This was found in a downstream build that supports two different pointer sizes, The CString Checker was attempting to compute an overlap for the 'to' and 'from' pointers, where the pointers were of different sizes. In the downstream case where this was found, a specialized memcpy routine patterned after memcpy_special is used. The analyzer core hits on this builtin because it matches the 'memcpy' portion of that builtin. This cannot be duplicated in the upstream test since there are no specialized builtins that match that pattern, but the case does reproduce in the accompanying LIT test case. The amdgcn target was used for this reproducer. See the documentation for AMDGPU address spaces here https://llvm.org/docs/AMDGPUUsage.html#address-spaces. The assert seen is: `*Solver->getSort(LHS) == *Solver->getSort(RHS) && "AST's must have the same sort!"' Ack to steakhal for reviewing the fix, and creating the test case. Reviewed By: steakhal Differential Revision: https://reviews.llvm.org/D118050
Diffstat (limited to 'lldb/source/Commands/CommandObjectMemory.cpp')
0 files changed, 0 insertions, 0 deletions