Skip to content

Commit e26ab59

Browse files
RKSimonkrishna2803
authored andcommitted
Fix MSVC truncation to char warning. NFC.
1 parent d6d2319 commit e26ab59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AArch64/AArch64InstrInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5883,7 +5883,7 @@ static void appendConstantExpr(SmallVectorImpl<char> &Expr, int64_t Constant,
58835883

58845884
// Convenience function to create a DWARF expression for a register.
58855885
static void appendReadRegExpr(SmallVectorImpl<char> &Expr, unsigned RegNum) {
5886-
Expr.push_back(dwarf::DW_OP_bregx);
5886+
Expr.push_back((char)dwarf::DW_OP_bregx);
58875887
appendLEB128<LEB128Sign::Unsigned>(Expr, RegNum);
58885888
Expr.push_back(0);
58895889
}

0 commit comments

Comments
 (0)