llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-compiler-rt-sanitizer Author: Vitaly Buka (vitalybuka) <details> <summary>Changes</summary> --- Full diff: https://github.com/llvm/llvm-project/pull/77144.diff 1 Files Affected: - (modified) compiler-rt/lib/tsan/rtl/tsan_report.cpp (+3-3) ``````````diff diff --git a/compiler-rt/lib/tsan/rtl/tsan_report.cpp b/compiler-rt/lib/tsan/rtl/tsan_report.cpp index 167e4be4fc0e26..cdcc20b9758f48 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; } `````````` </details> https://github.com/llvm/llvm-project/pull/77144 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits