[compiler-rt] [compiler-rt][RISCV] Avoid using __init_riscv_feature_bits as a direc… (PR #115316)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 7 05:36:43 PST 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 f5e4ffaa49254706ad6fa209de8aec28e20f0041 188868e390ad17cba0218458c43081ecb161a0da --extensions c -- compiler-rt/lib/builtins/cpu_model/riscv.c
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/lib/builtins/cpu_model/riscv.c b/compiler-rt/lib/builtins/cpu_model/riscv.c
index d2dffb45ec..7453489605 100644
--- a/compiler-rt/lib/builtins/cpu_model/riscv.c
+++ b/compiler-rt/lib/builtins/cpu_model/riscv.c
@@ -344,7 +344,7 @@ static void __init_riscv_feature_bits_ctor(void) CONSTRUCTOR_ATTRIBUTE;
// run before constructors without the priority set. However, it still runs
// after ifunc initializers and needs to be called explicitly there.
-static void CONSTRUCTOR_ATTRIBUTE __init_riscv_feature_bits_ctor (void) {
+static void CONSTRUCTOR_ATTRIBUTE __init_riscv_feature_bits_ctor(void) {
__init_riscv_feature_bits(0);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/115316
More information about the llvm-commits
mailing list