InlineCost: Make TotalAllocaSizeRecursiveCaller unsigned to avoid sign-compare warnings.
authorBenjamin Kramer <benny.kra@googlemail.com>
Wed, 19 Sep 2012 13:22:27 +0000 (13:22 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Wed, 19 Sep 2012 13:22:27 +0000 (13:22 +0000)
It's a size, not a cost.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164219 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/InlineCost.h

index f8de5335067a1824b929e746d0914fb01b8840d7..d58671f873d890c0155277dfa8f4dbcca68244e8 100644 (file)
@@ -38,7 +38,7 @@ namespace llvm {
     const int NoreturnPenalty = 10000;
     /// Do not inline functions which allocate this many bytes on the stack
     /// when the caller is recursive.
-    const int TotalAllocaSizeRecursiveCaller = 1024;
+    const unsigned TotalAllocaSizeRecursiveCaller = 1024;
   }
 
   /// \brief Represents the cost of inlining a function.