Fix -Werror build with clang-cl.

llvm-svn: 286683
This commit is contained in:
Zachary Turner 2016-11-11 23:58:11 +00:00
parent 11db2642fb
commit 804d50286d
1 changed files with 1 additions and 1 deletions

View File

@ -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 << ' ';