diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp index 80b1957a7e21..c0c6a0db1c90 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp @@ -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;