Make the TSan report capture data structure anonymous.
authorJim Ingham <jingham@apple.com>
Fri, 28 Apr 2023 00:36:31 +0000 (17:36 -0700)
committerJim Ingham <jingham@apple.com>
Fri, 28 Apr 2023 00:36:31 +0000 (17:36 -0700)
This was using `struct data` which is way to common a name to use in
an lldb expression, and was causing occasional failures in the
TSan report gatherer.  The structure doesn't need to have a tag,
so remove it to avoid future problems.

The same job was done for the other sanitizers in D145569, but this
one was overlooked.

Differential Revision: https://reviews.llvm.org/D149394

lldb/source/Plugins/InstrumentationRuntime/TSan/InstrumentationRuntimeTSan.cpp

index cebe8d8..946e4b3 100644 (file)
@@ -94,7 +94,7 @@ const char *thread_sanitizer_retrieve_report_data_command = R"(
 const int REPORT_TRACE_SIZE = 128;
 const int REPORT_ARRAY_SIZE = 4;
 
-struct data {
+struct {
     void *report;
     const char *description;
     int report_count;