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 HEAD~1 HEAD --extensions c -- 
bolt/test/X86/Inputs/pseudo-probe-split-func.c
``````````

</details>

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

``````````diff
diff --git a/bolt/test/X86/Inputs/pseudo-probe-split-func.c 
b/bolt/test/X86/Inputs/pseudo-probe-split-func.c
index 3f0edb334..8adf3bfc3 100644
--- a/bolt/test/X86/Inputs/pseudo-probe-split-func.c
+++ b/bolt/test/X86/Inputs/pseudo-probe-split-func.c
@@ -10,7 +10,10 @@ int bar(int x, int y) {
 void foo() {
   int s, i = 0;
   while (i++ < 4000 * 4000)
-    if (i % 91) s = bar(i, s); else s += 30;
+    if (i % 91)
+      s = bar(i, s);
+    else
+      s += 30;
   printf("sum is %d\n", s);
 }
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/139171
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to