[Inscombine] fix a signedness warning which broke -Werror builds
authorPhilip Reames <listmail@philipreames.com>
Thu, 10 May 2018 00:05:29 +0000 (00:05 +0000)
committerPhilip Reames <listmail@philipreames.com>
Thu, 10 May 2018 00:05:29 +0000 (00:05 +0000)
llvm-svn: 331944

llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp

index 80b1957..c0c6a0d 100644 (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;