summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2018-10-30 13:47:19 +0000
committerSanjay Patel <spatel@rotateright.com>2018-10-30 13:47:19 +0000
commit680c9227ca174b3865fdf7d35ca62d42e254ee0b (patch)
tree84632633f42021083d756fe4a730849046e73c1c /llvm/lib/CodeGen/SelectionDAG
parentbacf751add8304789a452fc01c78e73771c8d72e (diff)
downloadbcm5719-llvm-680c9227ca174b3865fdf7d35ca62d42e254ee0b.tar.gz
bcm5719-llvm-680c9227ca174b3865fdf7d35ca62d42e254ee0b.zip
[SelectionDAG] fix build warning for mismatched signs in compare; NFC
llvm-svn: 345598
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 933898b17c8..84e955fd6f6 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -3810,7 +3810,7 @@ static SDValue FoldBUILD_VECTOR(const SDLoc &DL, EVT VT,
SelectionDAG &DAG) {
int NumOps = Ops.size();
assert(NumOps != 0 && "Can't build an empty vector!");
- assert(VT.getVectorNumElements() == NumOps &&
+ assert(VT.getVectorNumElements() == (unsigned)NumOps &&
"Incorrect element count in BUILD_VECTOR!");
// BUILD_VECTOR of UNDEFs is UNDEF.
OpenPOWER on IntegriCloud