[Lldb-commits] [lldb] [lldb] Zero extend APInt when piece size is bigger than the bitwidth (PR #150149)

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Thu Jul 24 10:25:38 PDT 2025


clayborg wrote:

I added Pavel Labath and David Blaikie in case they have any info on this. 

The story if we have some RiscV code that is creating location values for variables that use DW_OP_piece and they are using:
```
DW_OP_lit0, DW_OP_stack_value, DW_OP_piece 0x28
```
to try and zero fill in the value. Not sure if this is common or if there is a better way to do the zero fill. But clang is producing this. as a series of `DW_OP_constu XXX, DW_OP_stack_value, DW_OP_piece 0x8` followed by the above expression.

https://github.com/llvm/llvm-project/pull/150149


More information about the lldb-commits mailing list