Use intptr_t.
authorBill Wendling <isanbard@gmail.com>
Sat, 25 Apr 2009 21:06:53 +0000 (21:06 +0000)
committerBill Wendling <isanbard@gmail.com>
Sat, 25 Apr 2009 21:06:53 +0000 (21:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70076 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Constants.h

index ae3a85bc386925b51cdc2515d2c6a86492c42e4b..2e48097f3e7a469a8c6928af91b4614586f3a74e 100644 (file)
@@ -845,7 +845,7 @@ public:
 
   /// size() - The length of this string.
   ///
-  size_t size() const { return StrEnd - StrBegin; }
+  intptr_t size() const { return StrEnd - StrBegin; }
 
   /// begin() - Pointer to the first byte of the string.
   ///