[libunwind] [libunwind][RISCV] Make asm statement volatile (PR #130286)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 7 06:02: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 308f933f75bcf92881c14e00e81d2d41a2893d7c c082d6c120b5eb090753413f14a571c9c8725640 --extensions hpp -- libunwind/src/Registers.hpp
``````````
</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 3b28874c9a..2c3bfb7e84 100644
--- a/libunwind/src/Registers.hpp
+++ b/libunwind/src/Registers.hpp
@@ -4126,7 +4126,7 @@ inline reg_t Registers_riscv::getRegister(int regNum) const {
return _registers[regNum];
if (regNum == UNW_RISCV_VLENB) {
reg_t vlenb;
- __asm__ volatile ("csrr %0, 0xC22" : "=r"(vlenb));
+ __asm__ volatile("csrr %0, 0xC22" : "=r"(vlenb));
return vlenb;
}
_LIBUNWIND_ABORT("unsupported riscv register");
``````````
</details>
https://github.com/llvm/llvm-project/pull/130286
More information about the cfe-commits
mailing list