Skip to content

Commit ec6dc30

Browse files
committed
[GlobalISel] Fix -Wsign-compare on 32-bit -DLLVM_ENABLE_ASSERTIONS=on builds
llvm-svn: 360989
1 parent a971003 commit ec6dc30

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ bool RegBankSelect::repairReg(
136136
RegBankSelect::RepairingPlacement &RepairPt,
137137
const iterator_range<SmallVectorImpl<unsigned>::const_iterator> &NewVRegs) {
138138

139-
assert(ValMapping.NumBreakDowns == size(NewVRegs) && "need new vreg for each breakdown");
139+
assert(ValMapping.NumBreakDowns == (unsigned)size(NewVRegs) &&
140+
"need new vreg for each breakdown");
140141

141142
// An empty range of new register means no repairing.
142143
assert(!empty(NewVRegs) && "We should not have to repair");

0 commit comments

Comments
 (0)