From: Zachary Turner Date: Fri, 11 Nov 2016 23:58:11 +0000 (+0000) Subject: Fix -Werror build with clang-cl. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=005ec66a75818f476c086ad974220b2e01e06f74;p=llvm Fix -Werror build with clang-cl. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286683 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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 << ' ';