1 From a46e381a9007ab552d4551711611cd9d231a9f17 Mon Sep 17 00:00:00 2001
2 From: Roger Zanoni <rzanoni@igalia.com>
3 Date: Wed, 25 Oct 2023 15:59:23 -0300
4 Subject: [PATCH 22/33] [M118-fix] Fix aggregate initialization in trace_log
6 clang 14 doesn't parenthesized initialization of aggregates, so we are
7 explicitly defining the needed constructor.
9 Upstream-Status: Inappropriate
10 Signed-off-by: Roger Zanoni <rzanoni@igalia.com>
12 base/trace_event/trace_log.h | 6 ++++++
13 1 file changed, 6 insertions(+)
15 diff --git a/base/trace_event/trace_log.h b/base/trace_event/trace_log.h
16 index 2778526e87b78..3b7e0f0306cf5 100644
17 --- a/base/trace_event/trace_log.h
18 +++ b/base/trace_event/trace_log.h
19 @@ -420,6 +420,12 @@ class BASE_EXPORT TraceLog :
21 #if BUILDFLAG(USE_PERFETTO_CLIENT_LIBRARY)
22 struct TrackEventSession {
23 + TrackEventSession(uint32_t internal_instance_index,
24 + perfetto::DataSourceConfig config,
25 + perfetto::BackendType backend_type = perfetto::kUnspecifiedBackend)
26 + : internal_instance_index{internal_instance_index}
28 + , backend_type{backend_type} {}
29 uint32_t internal_instance_index;
30 perfetto::DataSourceConfig config;
31 perfetto::BackendType backend_type = perfetto::kUnspecifiedBackend;