[libunwind] Read a saved condition register as a 32-bit word (PR #238317)

via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 3 04:55:16 PST 2026


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 cpp,hpp -- libunwind/test/ppc64_cr_registers.pass.cpp libunwind/src/DwarfInstructions.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/DwarfInstructions.hpp b/libunwind/src/DwarfInstructions.hpp
index 71a913e31..38a13c00e 100644
--- a/libunwind/src/DwarfInstructions.hpp
+++ b/libunwind/src/DwarfInstructions.hpp
@@ -312,8 +312,8 @@ int DwarfInstructions<A, R>::stepWithDwarf(
             // has to be read back as one: a 64-bit load returns the saved
             // word in the upper half on big-endian targets.
             newRegisters.setRegister(
-                i, addressSpace.get32(
-                       cfa + (pint_t)prolog.savedRegisters[i].value));
+                i, addressSpace.get32(cfa +
+                                      (pint_t)prolog.savedRegisters[i].value));
 #endif
           else if (registers.validRegister(i))
             newRegisters.setRegister(

``````````

</details>


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


More information about the cfe-commits mailing list