summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2024-01-05 14:06:41 -0800
committerVitaly Buka <vitalybuka@google.com>2024-01-05 14:06:41 -0800
commitd3a38ee314802fca37849ae33fa7d445369f0956 (patch)
tree32bb99cfc9557b41f85049d0af2b825cf4b06f89
parent848d7af956442fbf08310cc2d094035802fbe6ea (diff)
[𝘀𝗽𝗿] changes to main this commit is based on
Created using spr 1.3.4 [skip ci]
-rw-r--r--compiler-rt/lib/tsan/rtl/tsan_report.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/compiler-rt/lib/tsan/rtl/tsan_report.cpp b/compiler-rt/lib/tsan/rtl/tsan_report.cpp
index 35cb6710a54f..cdcc20b9758f 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_report.cpp
+++ b/compiler-rt/lib/tsan/rtl/tsan_report.cpp
@@ -274,17 +274,13 @@ static ReportStack *ChooseSummaryStack(const ReportDesc *rep) {
}
static bool FrameIsInternal(const SymbolizedStack *frame) {
- if (frame == 0)
+ if (!frame)
return false;
const char *file = frame->info.file;
const char *module = frame->info.module;
- if (file != 0 &&
- (internal_strstr(file, "tsan_interceptors_posix.cpp") ||
- internal_strstr(file, "tsan_interceptors_memintrinsics.cpp") ||
- internal_strstr(file, "sanitizer_common_interceptors.inc") ||
- internal_strstr(file, "tsan_interface_")))
+ if (file && (internal_strstr(file, "/compiler-rt/lib/")))
return true;
- if (module != 0 && (internal_strstr(module, "libclang_rt.tsan_")))
+ if (module && (internal_strstr(module, "libclang_rt.")))
return true;
return false;
}