From 4e72658b4f45d5a9a42b312ca79e295774340205 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Sun, 26 Mar 2017 17:39:41 +0000 Subject: [PATCH] Fix signed/unsigned comparison warnings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298813 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/IR/Instructions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/IR/Instructions.h b/include/llvm/IR/Instructions.h index 9c253a1a6bf..3908f9ee538 100644 --- a/include/llvm/IR/Instructions.h +++ b/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) { -- 2.40.0