From c04b6917c184ca9d6c7bc0c749a734f89cebcd35 Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Mon, 10 Nov 2008 10:05:09 +0000 Subject: [PATCH] Work around PR1000. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58984 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/StringExtras.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/ADT/StringExtras.h b/include/llvm/ADT/StringExtras.h index e6f027c31b4..e5a3d023466 100644 --- a/include/llvm/ADT/StringExtras.h +++ b/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) { -- 2.34.1