diff options
author | Adrian Prantl <aprantl@apple.com> | 2019-11-20 13:02:23 -0800 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2019-11-20 17:07:54 -0800 |
commit | 5da385fb56cbe92d8bd8f53954056eca1829fe1b (patch) | |
tree | 13bd221c3761c797262da131c1745499c58d7101 /lldb/packages/Python/lldbsuite/test/commands/command/script/TestCommandScript.py | |
parent | 1f4395942fc7af266bc6f520a61124b27ee90fed (diff) | |
download | bcm5719-llvm-5da385fb56cbe92d8bd8f53954056eca1829fe1b.tar.gz bcm5719-llvm-5da385fb56cbe92d8bd8f53954056eca1829fe1b.zip |
Fix an offset underflow bug in DwarfExpression when describing small values with subregisters
DwarfExpression::addMachineReg() knows how to build a larger register
that isn't expressible in DWARF by combining multiple
subregisters. However, if the entire value fits into just one
subregister, it would still emit the other subregisters, leading to
all sorts of inconsistencies down the line.
This patch fixes that by moving an already existing(!) check whether
the subregister's offset is before the end of the value to the right
place.
rdar://problem/57294211
Differential Revision: https://reviews.llvm.org/D70508
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/commands/command/script/TestCommandScript.py')
0 files changed, 0 insertions, 0 deletions