[llvm] r237794 - Silencing a -Wsign-compare warning; NFC.

Aaron Ballman aaron at aaronballman.com
Wed May 20 07:53:50 PDT 2015


Author: aaronballman
Date: Wed May 20 09:53:50 2015
New Revision: 237794

URL: http://llvm.org/viewvc/llvm-project?rev=237794&view=rev
Log:
Silencing a -Wsign-compare warning; NFC.

Modified:
    llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp?rev=237794&r1=237793&r2=237794&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp Wed May 20 09:53:50 2015
@@ -1877,7 +1877,7 @@ chainToBasePointerCost(SmallVectorImpl<I
 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.





More information about the llvm-commits mailing list