summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-09-19 13:22:27 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-09-19 13:22:27 +0000
commit9455a61009d6745558b217a44838f5c6318b0d5c (patch)
treede26a5774a1397039f46f2d778d30ec9fb0e8781 /include
parent1c1ab8f53d91506f0590dc1d2448ae438e00b8c6 (diff)
downloadllvm-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.h2
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.