[compiler-rt] r337536 - [Xray] fix c99 warning build about flexible array semantics
David Carlier via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 20 02:22:23 PDT 2018
Author: devnexen
Date: Fri Jul 20 02:22:22 2018
New Revision: 337536
URL: http://llvm.org/viewvc/llvm-project?rev=337536&view=rev
Log:
[Xray] fix c99 warning build about flexible array semantics
Reviewers: dberris
Reviewed By: dberris
Differential Revision: https://reviews.llvm.org/D49590
Modified:
compiler-rt/trunk/lib/xray/xray_segmented_array.h
Modified: compiler-rt/trunk/lib/xray/xray_segmented_array.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/xray/xray_segmented_array.h?rev=337536&r1=337535&r2=337536&view=diff
==============================================================================
--- compiler-rt/trunk/lib/xray/xray_segmented_array.h (original)
+++ compiler-rt/trunk/lib/xray/xray_segmented_array.h Fri Jul 20 02:22:22 2018
@@ -40,7 +40,7 @@ template <class T> class Array {
// We want each segment of the array to be cache-line aligned, and elements of
// the array be offset from the beginning of the segment.
struct Segment : SegmentBase {
- char Data[];
+ char Data[1];
};
public:
More information about the llvm-commits
mailing list