Work around PR1000.
authorDuncan Sands <baldrick@free.fr>
Mon, 10 Nov 2008 10:05:09 +0000 (10:05 +0000)
committerDuncan Sands <baldrick@free.fr>
Mon, 10 Nov 2008 10:05:09 +0000 (10:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58984 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/StringExtras.h

index e6f027c31b479c96cb18c7161c8e9bcb3f4bec12..e5a3d023466db1bbed45ddcba1d41d3b5cdc0b9e 100644 (file)
@@ -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) {