[Inscombine] fix a signedness warning which broke -Werror builds

llvm-svn: 331944
This commit is contained in:
Philip Reames 2018-05-10 00:05:29 +00:00
parent 2b248849ae
commit 913a779df2
1 changed files with 1 additions and 1 deletions

View File

@ -3635,7 +3635,7 @@ Instruction *InstCombiner::visitCallInst(CallInst &CI) {
// fixed window of instructions to handle common cases with conditions
// computed between guards.
Instruction *NextInst = II->getNextNode();
for (int i = 0; i < GuardWideningWindow; i++) {
for (unsigned i = 0; i < GuardWideningWindow; i++) {
// Note: Using context-free form to avoid compile time blow up
if (!isSafeToSpeculativelyExecute(NextInst))
break;