[libunwind] [libunwind] Ensure zaDisable() is called in jumpto/returnto (NFC) (PR #167674)

via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 12 03:24:28 PST 2025


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 origin/main HEAD --extensions hpp -- libunwind/src/Registers.hpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/libunwind/src/Registers.hpp b/libunwind/src/Registers.hpp
index 45a2b0921..18a9b6efc 100644
--- a/libunwind/src/Registers.hpp
+++ b/libunwind/src/Registers.hpp
@@ -1862,13 +1862,13 @@ public:
   v128        getVectorRegister(int num) const;
   void        setVectorRegister(int num, v128 value);
   static const char *getRegisterName(int num);
-  void        jumpto(unsigned walkedFrames = 0) {
+  void jumpto(unsigned walkedFrames = 0) {
     zaDisable();
     __libunwind_Registers_arm64_jumpto(this, walkedFrames);
   }
 #ifdef _LIBUNWIND_TRACE_RET_INJECT
   _LIBUNWIND_TRACE_NO_INLINE
-  void        returnto(unsigned walkedFrames) { jumpto(walkedFrames); }
+  void returnto(unsigned walkedFrames) { jumpto(walkedFrames); }
 #endif
   static constexpr int lastDwarfRegNum() {
     return _LIBUNWIND_HIGHEST_DWARF_REGISTER_ARM64;

``````````

</details>


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


More information about the cfe-commits mailing list