summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2024-05-03 09:07:20 +0200
committerGitHub <noreply@github.com>2024-05-03 09:07:20 +0200
commite450f987286b983328e0b9e65630b656dec291de (patch)
tree5fc385950c6f6e434bdfd8fc0313188567c8b795 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parentb03e7a51dd9be2f3be09062a7762dd3507b04b26 (diff)
[lldb] Fix Scalar::GetData for non-multiple-of-8-bits values (#90846)
It was aligning the byte size down. Now it aligns up. This manifested itself as SBTypeStaticField::GetConstantValue returning a zero-sized value for `bool` fields (because clang represents bool as a 1-bit value). I've changed the code for float Scalars as well, although I'm not aware of floating point values that are not multiples of 8 bits.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions