aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 ae3a85b..2e48097 100644
--- a/include/llvm/Constants.h
+++ b/include/llvm/Constants.h
@@ -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.
///