================ @@ -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); ---------------- kuilpd wrote:
Made a PR #120794, once it's merged I will rebase this branch on main and run tests again. https://github.com/llvm/llvm-project/pull/115005 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits