diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2017-03-26 17:39:41 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2017-03-26 17:39:41 +0000 |
commit | ca8bd2582414c161928759f553d527356463e5d6 (patch) | |
tree | 642162ce9f5b659eb4703418bdb0f07b396ddca2 /llvm | |
parent | 7375448893c9c46a1a03a7dd3eaa2f6c63845738 (diff) | |
download | bcm5719-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.h | 2 |
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) { |