[compiler-rt] [TSan] fix the module map of main executable on darwin platforms (PR #107227)

via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 4 05:20:34 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 7aabdb8776eb11b90d43162254db47df46806ec9 0152595d59f91bcb84a8bb7b2b885af0fe44cbf7 --extensions cpp -- compiler-rt/lib/sanitizer_common/sanitizer_procmaps_mac.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_procmaps_mac.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_procmaps_mac.cpp
index d13bc8e6ea..5ff8d18325 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_procmaps_mac.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_procmaps_mac.cpp
@@ -434,7 +434,8 @@ void MemoryMappingLayout::DumpListOfModules(
   segment.data_ = &data;
   while (Next(&segment)) {
     // skip the __PAGEZERO segment, its vmsize is 0
-    if (segment.filename[0] == '\0' || (segment.start == segment.end)) continue;
+    if (segment.filename[0] == '\0' || (segment.start == segment.end))
+      continue;
     LoadedModule *cur_module = nullptr;
     if (!modules->empty() &&
         0 == internal_strcmp(segment.filename, modules->back().full_name())) {

``````````

</details>


https://github.com/llvm/llvm-project/pull/107227


More information about the llvm-commits mailing list