[Lldb-commits] [clang] [lldb] [lldb] Analyze enum promotion type during parsing (PR #115005)
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Thu Dec 12 06:48:51 PST 2024
================
@@ -8544,7 +8524,8 @@ clang::EnumConstantDecl *TypeSystemClang::AddEnumerationValueToEnumerationType(
bool is_signed = false;
underlying_type.IsIntegerType(is_signed);
- llvm::APSInt value(enum_value_bit_size, is_signed);
+ // APSInt constructor's sign argument is isUnsigned
+ llvm::APSInt value(enum_value_bit_size, !is_signed);
----------------
Michael137 wrote:
Also, no need for the comment
https://github.com/llvm/llvm-project/pull/115005
More information about the lldb-commits
mailing list