[llvm] r331944 - [Inscombine] fix a signedness warning which broke -Werror builds
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Wed May 9 17:05:29 PDT 2018
Author: reames
Date: Wed May 9 17:05:29 2018
New Revision: 331944
URL: http://llvm.org/viewvc/llvm-project?rev=331944&view=rev
Log:
[Inscombine] fix a signedness warning which broke -Werror builds
Modified:
llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp
Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp?rev=331944&r1=331943&r2=331944&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp Wed May 9 17:05:29 2018
@@ -3635,7 +3635,7 @@ Instruction *InstCombiner::visitCallInst
// 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;
More information about the llvm-commits
mailing list