[compiler-rt] [rtsan][NFC] Refactor where we unwind the stack (PR #111443)

via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 7 14:49:01 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 75103aae4a9d22e2c46068f2160f2dddd6ad2116 560e864397a9bc3ea3b6f1ae71295ec36b182cbf --extensions h,cpp -- compiler-rt/lib/rtsan/rtsan.cpp compiler-rt/lib/rtsan/rtsan_assertions.h compiler-rt/lib/rtsan/tests/rtsan_test_assertions.cpp
``````````

</details>

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

``````````diff
diff --git a/compiler-rt/lib/rtsan/rtsan.cpp b/compiler-rt/lib/rtsan/rtsan.cpp
index 7434412bed..85c452cb3c 100644
--- a/compiler-rt/lib/rtsan/rtsan.cpp
+++ b/compiler-rt/lib/rtsan/rtsan.cpp
@@ -68,11 +68,11 @@ static auto OnViolationAction(const BufferedStackTrace &stack,
     handle.inc_use_count_unsafe();
   }
 
-    if (flags().halt_on_error) {
-      if (flags().print_stats_on_exit)
-        PrintStatisticsSummary();
-      Die();
-    }
+  if (flags().halt_on_error) {
+    if (flags().print_stats_on_exit)
+      PrintStatisticsSummary();
+    Die();
+  }
 }
 
 extern "C" {

``````````

</details>


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


More information about the llvm-commits mailing list