jingham created this revision.
jingham added reviewers: Michael137, JDevlieghere.
Herald added a project: All.
jingham requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.
The InstrumentationRuntime's defined a data structure to gather report data,
and repeated the pattern of defining it like:
struct data {
};
data t = {0};
That causes conflicts against other types called data, and could cause the
expression not to compile. Michael fixed this for some of the sanitizers in:
https://reviews.llvm.org/D145569
but neglected to do it for the thread sanitizer.
This patch adds the fix to that sanitizer.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D149394
Files:
lldb/source/Plugins/InstrumentationRuntime/TSan/InstrumentationRuntimeTSan.cpp
Index:
lldb/source/Plugins/InstrumentationRuntime/TSan/InstrumentationRuntimeTSan.cpp
===================================================================
---
lldb/source/Plugins/InstrumentationRuntime/TSan/InstrumentationRuntimeTSan.cpp
+++
lldb/source/Plugins/InstrumentationRuntime/TSan/InstrumentationRuntimeTSan.cpp
@@ -94,7 +94,7 @@
const int REPORT_TRACE_SIZE = 128;
const int REPORT_ARRAY_SIZE = 4;
-struct data {
+struct {
void *report;
const char *description;
int report_count;
Index: lldb/source/Plugins/InstrumentationRuntime/TSan/InstrumentationRuntimeTSan.cpp
===================================================================
--- lldb/source/Plugins/InstrumentationRuntime/TSan/InstrumentationRuntimeTSan.cpp
+++ lldb/source/Plugins/InstrumentationRuntime/TSan/InstrumentationRuntimeTSan.cpp
@@ -94,7 +94,7 @@
const int REPORT_TRACE_SIZE = 128;
const int REPORT_ARRAY_SIZE = 4;
-struct data {
+struct {
void *report;
const char *description;
int report_count;
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits