[compiler-rt] [compiler-rt][nsan] Update UnwindImpl (PR #107313)

via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 4 14:24:52 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 0fffdeb5f46078ddcc61e112cd38856b1165f050 1c0558e8d19529ee28b9b0731f494aade8d48004 --extensions cpp -- compiler-rt/lib/nsan/nsan.cpp
``````````

</details>

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

``````````diff
diff --git a/compiler-rt/lib/nsan/nsan.cpp b/compiler-rt/lib/nsan/nsan.cpp
index c2e7690e12..0cc1b69c71 100644
--- a/compiler-rt/lib/nsan/nsan.cpp
+++ b/compiler-rt/lib/nsan/nsan.cpp
@@ -195,8 +195,10 @@ template <typename T> T max(T a, T b) { return a < b ? b : a; }
 
 } // end anonymous namespace
 
-void __sanitizer::BufferedStackTrace::UnwindImpl(
-    uptr pc, uptr bp, void *context, bool request_fast, u32 max_depth) {
+void __sanitizer::BufferedStackTrace::UnwindImpl(uptr pc, uptr bp,
+                                                 void *context,
+                                                 bool request_fast,
+                                                 u32 max_depth) {
   using namespace __msan;
   NsanThread *t = GetCurrentThread();
   if (!t || !StackTrace::WillUseFastUnwind(request_fast)) {

``````````

</details>


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


More information about the llvm-commits mailing list