From 005ec66a75818f476c086ad974220b2e01e06f74 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Fri, 11 Nov 2016 23:58:11 +0000 Subject: [PATCH] Fix -Werror build with clang-cl. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286683 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/IR/AsmWriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/IR/AsmWriter.cpp b/lib/IR/AsmWriter.cpp index 7334c988f29..5eb93ceda32 100644 --- a/lib/IR/AsmWriter.cpp +++ b/lib/IR/AsmWriter.cpp @@ -1330,7 +1330,7 @@ static void WriteConstantInternal(raw_ostream &Out, const Constant *CV, } for (User::const_op_iterator OI=CE->op_begin(); OI != CE->op_end(); ++OI) { - if (InRangeOp && (OI - CE->op_begin()) == *InRangeOp) + if (InRangeOp && unsigned(OI - CE->op_begin()) == *InRangeOp) Out << "inrange "; TypePrinter.print((*OI)->getType(), Out); Out << ' '; -- 2.50.1