[Lldb-commits] [lldb] [lldb] Fix casting from float in `ValueObject::CastToEnumType` (PR #191908)
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Sat Apr 18 09:24:47 PDT 2026
================
@@ -3322,7 +3322,8 @@ lldb::ValueObjectSP ValueObject::CastToEnumType(CompilerType type) {
byte_size = temp.value();
if (is_float) {
- llvm::APSInt integer(byte_size * CHAR_BIT, !type.IsSigned());
+ llvm::APSInt integer(byte_size * CHAR_BIT,
+ !type.IsEnumerationIntegerTypeSigned());
----------------
Michael137 wrote:
Feels like `IsSigned` should just work on enums too. But i'll leave that to separate research
https://github.com/llvm/llvm-project/pull/191908
More information about the lldb-commits
mailing list