aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMon P Wang <wangmp@apple.com>2009-04-25 20:46:59 +0000
committerMon P Wang <wangmp@apple.com>2009-04-25 20:46:59 +0000
commit8d34844bff997d9587c4d64339f110908e4e720f (patch)
treea996cfce628d342cb81f66865a62472a61378e30
parenta4b2bab23313b1d45e1f3e6c9610a1e83fce4005 (diff)
downloadexternal_llvm-8d34844bff997d9587c4d64339f110908e4e720f.zip
external_llvm-8d34844bff997d9587c4d64339f110908e4e720f.tar.gz
external_llvm-8d34844bff997d9587c4d64339f110908e4e720f.tar.bz2
size() should return a size_t; avoids a warning for 64 bit machines.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70072 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Constants.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h
index f5c2655..ae3a85b 100644
--- a/include/llvm/Constants.h
+++ b/include/llvm/Constants.h
@@ -845,7 +845,7 @@ public:
/// size() - The length of this string.
///
- unsigned size() const { return StrEnd - StrBegin; }
+ size_t size() const { return StrEnd - StrBegin; }
/// begin() - Pointer to the first byte of the string.
///