diff options
author | Sanjay Patel <spatel@rotateright.com> | 2018-10-30 13:47:19 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2018-10-30 13:47:19 +0000 |
commit | 680c9227ca174b3865fdf7d35ca62d42e254ee0b (patch) | |
tree | 84632633f42021083d756fe4a730849046e73c1c | |
parent | bacf751add8304789a452fc01c78e73771c8d72e (diff) | |
download | bcm5719-llvm-680c9227ca174b3865fdf7d35ca62d42e254ee0b.tar.gz bcm5719-llvm-680c9227ca174b3865fdf7d35ca62d42e254ee0b.zip |
[SelectionDAG] fix build warning for mismatched signs in compare; NFC
llvm-svn: 345598
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 |
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. |