[Lldb-commits] [PATCH] D76449: [lldb/Dwarf] Change DW_OP_piece to use an llvm::BitVector
Med Ismail Bennani via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Mar 19 15:22:39 PDT 2020
mib marked an inline comment as done.
mib added inline comments.
================
Comment at: lldb/source/Expression/DWARFExpression.cpp:2164
+ unsigned int curr_scalar = curr_piece.GetScalar().UInt();
+ curr_scalar = curr_scalar << curr_width;
+ bit_pieces.resize(curr_width + piece_byte_size * 8);
----------------
aprantl wrote:
> how do you know the `unsigned int` is large enough for this operation?
TBH, I just chose the same return type as GetScalar::UInt.
I’ll change it to GetScalar::UInt128 with an llvm::APInt
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D76449/new/
https://reviews.llvm.org/D76449
More information about the lldb-commits
mailing list