[llvm] 9b7b382 - Fix MSVC truncation to char warning. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 6 03:40:26 PDT 2025
Author: Simon Pilgrim
Date: 2025-08-06T11:39:48+01:00
New Revision: 9b7b3828716a127e6a9155b516f624a0f5a30887
URL: https://github.com/llvm/llvm-project/commit/9b7b3828716a127e6a9155b516f624a0f5a30887
DIFF: https://github.com/llvm/llvm-project/commit/9b7b3828716a127e6a9155b516f624a0f5a30887.diff
LOG: Fix MSVC truncation to char warning. NFC.
Added:
Modified:
llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp b/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
index 98ebd512b0b75..fb59c9f131fb2 100644
--- a/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
+++ b/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
@@ -5883,7 +5883,7 @@ static void appendConstantExpr(SmallVectorImpl<char> &Expr, int64_t Constant,
// Convenience function to create a DWARF expression for a register.
static void appendReadRegExpr(SmallVectorImpl<char> &Expr, unsigned RegNum) {
- Expr.push_back(dwarf::DW_OP_bregx);
+ Expr.push_back((char)dwarf::DW_OP_bregx);
appendLEB128<LEB128Sign::Unsigned>(Expr, RegNum);
Expr.push_back(0);
}
More information about the llvm-commits
mailing list