summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2017-03-26 17:39:41 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2017-03-26 17:39:41 +0000
commitca8bd2582414c161928759f553d527356463e5d6 (patch)
tree642162ce9f5b659eb4703418bdb0f07b396ddca2 /llvm
parent7375448893c9c46a1a03a7dd3eaa2f6c63845738 (diff)
downloadbcm5719-llvm-ca8bd2582414c161928759f553d527356463e5d6.tar.gz
bcm5719-llvm-ca8bd2582414c161928759f553d527356463e5d6.zip
Fix signed/unsigned comparison warnings.
llvm-svn: 298813
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/IR/Instructions.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/IR/Instructions.h b/llvm/include/llvm/IR/Instructions.h
index 9c253a1a6bf..3908f9ee538 100644
--- a/llvm/include/llvm/IR/Instructions.h
+++ b/llvm/include/llvm/IR/Instructions.h
@@ -3150,7 +3150,7 @@ public:
assert(((unsigned)Index == DefaultPseudoIndex ||
(unsigned)Index < SI->getNumCases()) &&
"Index out the number of cases.");
- return Index != DefaultPseudoIndex ? Index + 1 : 0;
+ return (unsigned)Index != DefaultPseudoIndex ? Index + 1 : 0;
}
Self &operator+=(ptrdiff_t N) {
OpenPOWER on IntegriCloud