diff options
author | Vitaly Buka <vitalybuka@google.com> | 2024-01-05 14:32:18 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-05 14:32:18 -0800 |
commit | 9cf4f10609435bccd5fb32b979557a9e339563b6 (patch) | |
tree | 8fd12d41a3cb8e542d391e0bcd6a49f10a83c1bd | |
parent | 5b54dd4f5eccc66c6352f9277d0a6edbd2e80435 (diff) | |
download | llvm-9cf4f10609435bccd5fb32b979557a9e339563b6.zip llvm-9cf4f10609435bccd5fb32b979557a9e339563b6.tar.gz llvm-9cf4f10609435bccd5fb32b979557a9e339563b6.tar.bz2 |
[NFC][tsan] `ptr != 0` to implicit check (#77144)
-rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_report.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler-rt/lib/tsan/rtl/tsan_report.cpp b/compiler-rt/lib/tsan/rtl/tsan_report.cpp index 167e4be..cdcc20b 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_report.cpp +++ b/compiler-rt/lib/tsan/rtl/tsan_report.cpp @@ -274,13 +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, "/compiler-rt/lib/"))) + if (file && (internal_strstr(file, "/compiler-rt/lib/"))) return true; - if (module != 0 && (internal_strstr(module, "libclang_rt."))) + if (module && (internal_strstr(module, "libclang_rt."))) return true; return false; } |