[Lldb-commits] [lldb] [lldb] Store proper integer bitwidth in Scalar Type (PR #81451)
Kamlesh Kumar via lldb-commits
lldb-commits at lists.llvm.org
Wed Feb 14 18:16:10 PST 2024
kamleshbhalui wrote:
> I am fine with this patch if we fix the Scalar class to obey the bit width as suggested above. I do worry though that other Scalar values in the expression might get set to 64 bit values all of the time and cause problems with DWARF expressions. Do you have a code snippet of where this is used where you rely on the bit width? Usually `DW_OP_*` opcodes act on a pointer width integer, but some do actually specify a width (some of the deref operations).
Yes here it is https://github.com/llvm/llvm-project/blob/main/llvm/lib/Support/APInt.cpp#L715.
https://github.com/llvm/llvm-project/pull/81451
More information about the lldb-commits
mailing list