From 0a758fae91385324c2f65220180ab6653663f66a Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Mon, 10 Nov 2008 10:05:09 +0000 Subject: [PATCH] Work around PR1000. llvm-svn: 58984 --- llvm/include/llvm/ADT/StringExtras.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/include/llvm/ADT/StringExtras.h b/llvm/include/llvm/ADT/StringExtras.h index e6f027c31b47..e5a3d023466d 100644 --- a/llvm/include/llvm/ADT/StringExtras.h +++ b/llvm/include/llvm/ADT/StringExtras.h @@ -56,7 +56,7 @@ static inline char *utohex_buffer(IntTy X, char *BufferEnd) { static inline std::string utohexstr(uint64_t X) { char Buffer[40]; - return utohex_buffer(X, Buffer); + return utohex_buffer(X, Buffer+40); } static inline std::string utostr_32(uint32_t X, bool isNeg = false) {