From 47f72aede163348ee474be4a3004dc0a9195fa9c Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Thu, 27 Apr 2023 17:36:31 -0700 Subject: [PATCH] Make the TSan report capture data structure anonymous. 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 --- .../Plugins/InstrumentationRuntime/TSan/InstrumentationRuntimeTSan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/source/Plugins/InstrumentationRuntime/TSan/InstrumentationRuntimeTSan.cpp b/lldb/source/Plugins/InstrumentationRuntime/TSan/InstrumentationRuntimeTSan.cpp index cebe8d8..946e4b3 100644 --- a/lldb/source/Plugins/InstrumentationRuntime/TSan/InstrumentationRuntimeTSan.cpp +++ b/lldb/source/Plugins/InstrumentationRuntime/TSan/InstrumentationRuntimeTSan.cpp @@ -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; -- 2.7.4