aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2022-12-08 11:00:08 -0800
committerJim Ingham <jingham@apple.com>2022-12-09 11:16:10 -0800
commit3b7ac5b295df7381cee277342085f52fe468e633 (patch)
treec7f9fb5f1163bc433ecd86f03c444b6965fae1b9 /llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp
parentf472da190b65a1db2512960ee5334889a6663aef (diff)
downloadllvm-3b7ac5b295df7381cee277342085f52fe468e633.zip
llvm-3b7ac5b295df7381cee277342085f52fe468e633.tar.gz
llvm-3b7ac5b295df7381cee277342085f52fe468e633.tar.bz2
Fix GetAddressOf for children of pointer ValueObjectConstResult* variables.
The original code always set the m_live_address of children of the ValueObjects that use ValueObjectConstResultImpl backends to the parent m_live_address + child_byte_offset. That is correct for structure types, but wrong for pointer types, since m_live_address for a pointer type is the address of the storage for the pointer, not of the pointee. Also added a test which was failing before this patch.
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp')
0 files changed, 0 insertions, 0 deletions