[PATCH] D42494: [XRay] [compiler-rt] stop writing garbage in naive log records

Martin Pelikán via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 30 05:27:14 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL323755: [XRay] [compiler-rt] stop writing garbage in naive log records (authored by pelikan, committed by ).

Repository:
  rL LLVM

https://reviews.llvm.org/D42494

Files:
  compiler-rt/trunk/include/xray/xray_records.h


Index: compiler-rt/trunk/include/xray/xray_records.h
===================================================================
--- compiler-rt/trunk/include/xray/xray_records.h
+++ compiler-rt/trunk/include/xray/xray_records.h
@@ -96,7 +96,7 @@
   uint32_t TId = 0;
 
   // Use some bytes in the end of the record for buffers.
-  char Buffer[4] = {};
+  char Buffer[12] = {};
 } __attribute__((packed));
 
 static_assert(sizeof(XRayRecord) == 32, "XRayRecord != 32 bytes");


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42494.131951.patch
Type: text/x-patch
Size: 468 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180130/f1a5d881/attachment.bin>


More information about the llvm-commits mailing list