[llvm] r360989 - [GlobalISel] Fix -Wsign-compare on 32-bit -DLLVM_ENABLE_ASSERTIONS=on builds
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Thu May 16 22:53:39 PDT 2019
Author: maskray
Date: Thu May 16 22:53:39 2019
New Revision: 360989
URL: http://llvm.org/viewvc/llvm-project?rev=360989&view=rev
Log:
[GlobalISel] Fix -Wsign-compare on 32-bit -DLLVM_ENABLE_ASSERTIONS=on builds
Modified:
llvm/trunk/lib/CodeGen/GlobalISel/RegBankSelect.cpp
Modified: llvm/trunk/lib/CodeGen/GlobalISel/RegBankSelect.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/GlobalISel/RegBankSelect.cpp?rev=360989&r1=360988&r2=360989&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/GlobalISel/RegBankSelect.cpp (original)
+++ llvm/trunk/lib/CodeGen/GlobalISel/RegBankSelect.cpp Thu May 16 22:53:39 2019
@@ -136,7 +136,8 @@ bool RegBankSelect::repairReg(
RegBankSelect::RepairingPlacement &RepairPt,
const iterator_range<SmallVectorImpl<unsigned>::const_iterator> &NewVRegs) {
- assert(ValMapping.NumBreakDowns == size(NewVRegs) && "need new vreg for each breakdown");
+ assert(ValMapping.NumBreakDowns == (unsigned)size(NewVRegs) &&
+ "need new vreg for each breakdown");
// An empty range of new register means no repairing.
assert(!empty(NewVRegs) && "We should not have to repair");
More information about the llvm-commits
mailing list