diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-09-19 13:22:27 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-09-19 13:22:27 +0000 |
commit | 9455a61009d6745558b217a44838f5c6318b0d5c (patch) | |
tree | de26a5774a1397039f46f2d778d30ec9fb0e8781 /include | |
parent | 1c1ab8f53d91506f0590dc1d2448ae438e00b8c6 (diff) | |
download | llvm-9455a61009d6745558b217a44838f5c6318b0d5c.tar.gz llvm-9455a61009d6745558b217a44838f5c6318b0d5c.tar.bz2 llvm-9455a61009d6745558b217a44838f5c6318b0d5c.tar.xz |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Analysis/InlineCost.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Analysis/InlineCost.h b/include/llvm/Analysis/InlineCost.h index f8de533506..d58671f873 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. |