[PATCH] D49161: Fix reading 32 bit gcov tag values on little-endian machines

Marco Romano via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 11 02:36:22 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rCRT336775: Fix reading 32 bit gcov tag values on little-endian machines (authored by marco, committed by ).

Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D49161

Files:
  lib/profile/GCDAProfiling.c


Index: lib/profile/GCDAProfiling.c
===================================================================
--- lib/profile/GCDAProfiling.c
+++ lib/profile/GCDAProfiling.c
@@ -79,7 +79,7 @@
  * Buffer that we write things into.
  */
 #define WRITE_BUFFER_SIZE (128 * 1024)
-static char *write_buffer = NULL;
+static unsigned char *write_buffer = NULL;
 static uint64_t cur_buffer_size = 0;
 static uint64_t cur_pos = 0;
 static uint64_t file_size = 0;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49161.154950.patch
Type: text/x-patch
Size: 447 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180711/87be32c9/attachment.bin>


More information about the llvm-commits mailing list