1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

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 1cad744181
commit 7b6891fa31

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