summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2019-05-17 05:53:39 +0000
committerFangrui Song <maskray@google.com>2019-05-17 05:53:39 +0000
commitec6dc3089e7fa0d0dfcd66024b7e1c07a43c85ac (patch)
treed0ce2a7c32e5f1b582264efe3a557d7b349ea1ed
parenta971003e46774281f768c7f59c575827f60f27b4 (diff)
downloadbcm5719-llvm-ec6dc3089e7fa0d0dfcd66024b7e1c07a43c85ac.tar.gz
bcm5719-llvm-ec6dc3089e7fa0d0dfcd66024b7e1c07a43c85ac.zip
[GlobalISel] Fix -Wsign-compare on 32-bit -DLLVM_ENABLE_ASSERTIONS=on builds
llvm-svn: 360989
-rw-r--r--llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp b/llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp
index 6bc4cfad172..c6e496dcb23 100644
--- a/llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp
@@ -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");
OpenPOWER on IntegriCloud