[compiler-rt] [compiler-rt][RISCV] Implement __riscv_ifunc_select (PR #85790)

via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 31 19:34:35 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 c1328db9d8e41bb96e031eb3dfa884e56b07244b 7e1dc72d7279f9ccf850ce145d379aad7d8942ad -- compiler-rt/lib/builtins/riscv/ifunc_select.c
``````````

</details>

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

``````````diff
diff --git a/compiler-rt/lib/builtins/riscv/ifunc_select.c b/compiler-rt/lib/builtins/riscv/ifunc_select.c
index 13a4582fd1..f8678473ae 100644
--- a/compiler-rt/lib/builtins/riscv/ifunc_select.c
+++ b/compiler-rt/lib/builtins/riscv/ifunc_select.c
@@ -102,7 +102,7 @@ static long sys_riscv_hwprobe(struct riscv_hwprobe *pairs, unsigned pair_count,
 }
 
 static void initHwProbe(struct riscv_hwprobe *Hwprobes, int len) {
-  sys_riscv_hwprobe(Hwprobes, len, 0, (cpu_set_t *)((void*) 0), 0);
+  sys_riscv_hwprobe(Hwprobes, len, 0, (cpu_set_t *)((void *)0), 0);
 }
 
 #endif // defined(__linux__)

``````````

</details>


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


More information about the llvm-commits mailing list