Skip to content

Commit 4c28bbf

Browse files
committed
[AArch64] Fix ‘>= 0’ is always true warning. NFC
1 parent bbcac02 commit 4c28bbf

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
@@ -5920,7 +5920,7 @@ static MCCFIInstruction createDefCFAExpression(const TargetRegisterInfo &TRI,
59205920
// Build up the expression (Reg + NumBytes + VG * NumVGScaledBytes)
59215921
SmallString<64> Expr;
59225922
unsigned DwarfReg = TRI.getDwarfRegNum(Reg, true);
5923-
assert(DwarfReg >= 0 && DwarfReg <= 31 && "DwarfReg out of bounds (0..31)");
5923+
assert(DwarfReg <= 31 && "DwarfReg out of bounds (0..31)");
59245924
// Reg + NumBytes
59255925
Expr.push_back(dwarf::DW_OP_breg0 + DwarfReg);
59265926
appendLEB128<LEB128Sign::Signed>(Expr, NumBytes);

0 commit comments

Comments
 (0)