From 913a779df29cb4c8fc7943917371bb141b04c3a7 Mon Sep 17 00:00:00 2001 From: Philip Reames Date: Thu, 10 May 2018 00:05:29 +0000 Subject: [PATCH] [Inscombine] fix a signedness warning which broke -Werror builds llvm-svn: 331944 --- llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;