[all-commits] [llvm/llvm-project] e450f9: [lldb] Fix Scalar::GetData for non-multiple-of-8-b...
Pavel Labath via All-commits
all-commits at lists.llvm.org
Fri May 3 00:07:41 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e450f987286b983328e0b9e65630b656dec291de
https://github.com/llvm/llvm-project/commit/e450f987286b983328e0b9e65630b656dec291de
Author: Pavel Labath <pavel at labath.sk>
Date: 2024-05-03 (Fri, 03 May 2024)
Changed paths:
M lldb/source/Utility/Scalar.cpp
M lldb/test/API/python_api/type/TestTypeList.py
M lldb/test/API/python_api/type/main.cpp
M lldb/unittests/Utility/ScalarTest.cpp
Log Message:
-----------
[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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list