commit | 4f2e66c0184baeccf43d08217c70efcd92674311 | [log] [tgz] |
---|---|---|
author | Fangrui Song <maskray@google.com> | Fri Nov 09 16:45:37 2018 +0000 |
committer | Fangrui Song <maskray@google.com> | Fri Nov 09 16:45:37 2018 +0000 |
tree | c70870ec3bb6c85cca4c0669495ec36046778af5 | |
parent | 0d12713c2b4a06ac4ddafaff257020e54c878613 [diff] [blame] |
Fix -Wsign-compare warning llvm-svn: 346515
diff --git a/llvm/lib/IR/Instructions.cpp b/llvm/lib/IR/Instructions.cpp index 66fdb46..0295da9 100644 --- a/llvm/lib/IR/Instructions.cpp +++ b/llvm/lib/IR/Instructions.cpp
@@ -1805,7 +1805,7 @@ return false; // Must be smaller (else this is an Identity shuffle). - if (NumSrcElts <= Mask.size()) + if (NumSrcElts <= (int)Mask.size()) return false; // Find start of extraction, accounting that we may start with an UNDEF.