Silencing a -Wsign-compare warning; NFC.
authorAaron Ballman <aaron@aaronballman.com>
Wed, 20 May 2015 14:53:50 +0000 (14:53 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Wed, 20 May 2015 14:53:50 +0000 (14:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237794 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/RewriteStatepointsForGC.cpp

index 505070552c188e10d6eb444a1e1fbe145863dc3d..06ade397cfacb16b3898d7c93b6ef0782f7037b1 100644 (file)
@@ -1877,7 +1877,7 @@ chainToBasePointerCost(SmallVectorImpl<Instruction*> &Chain,
 static void rematerializeLiveValues(CallSite CS,
                                     PartiallyConstructedSafepointRecord &Info,
                                     TargetTransformInfo &TTI) {
-  const int ChainLengthThreshold = 10;
+  const unsigned int ChainLengthThreshold = 10;
   
   // Record values we are going to delete from this statepoint live set.
   // We can not di this in following loop due to iterator invalidation.