From: Benjamin Kramer Date: Wed, 19 Sep 2012 13:22:27 +0000 (+0000) Subject: InlineCost: Make TotalAllocaSizeRecursiveCaller unsigned to avoid sign-compare warnings. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9455a61009d6745558b217a44838f5c6318b0d5c;p=oota-llvm.git InlineCost: Make TotalAllocaSizeRecursiveCaller unsigned to avoid sign-compare warnings. It's a size, not a cost. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164219 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Analysis/InlineCost.h b/include/llvm/Analysis/InlineCost.h index f8de5335067..d58671f873d 100644 --- a/include/llvm/Analysis/InlineCost.h +++ b/include/llvm/Analysis/InlineCost.h @@ -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.