summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2018-07-20 09:22:22 +0000
committerDavid Carlier <devnexen@gmail.com>2018-07-20 09:22:22 +0000
commitf3c53c57134e51a1db5d78478125aeda7d81fa20 (patch)
tree976bd92efc929e3b19289c383cc75ed487720820 /lib
parent6b978a22fee3b73549f49349603e8c2ddc63cd8d (diff)
[Xray] fix c99 warning build about flexible array semantics
Reviewers: dberris Reviewed By: dberris Differential Revision: https://reviews.llvm.org/D49590 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@337536 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/xray/xray_segmented_array.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/xray/xray_segmented_array.h b/lib/xray/xray_segmented_array.h
index 018c2aa9e..11dd794fa 100644
--- a/lib/xray/xray_segmented_array.h
+++ b/lib/xray/xray_segmented_array.h
@@ -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: