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)
llvm-svn: 237794

llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp

index 5050705..06ade39 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.