[Lldb-commits] [clang] [lldb] [llvm] [APInt] Fix APInt constructions where value does not fit bitwidth (NFCI) (PR #80309)
Nikita Popov via lldb-commits
lldb-commits at lists.llvm.org
Wed Oct 16 03:20:21 PDT 2024
================
@@ -437,7 +437,9 @@ ExprResult Parser::createEmbedExpr() {
SourceLocation StartLoc = ConsumeAnnotationToken();
if (Data->BinaryData.size() == 1) {
Res = IntegerLiteral::Create(Context,
- llvm::APInt(CHAR_BIT, Data->BinaryData.back()),
+ llvm::APInt(CHAR_BIT, Data->BinaryData.back(),
----------------
nikic wrote:
Done, though I used `(unsigned char)` to match `CHAR_BIT` more closely.
https://github.com/llvm/llvm-project/pull/80309
More information about the lldb-commits
mailing list