[llvm] [orc-rt] Add C addressing regression tests for functions. (PR #227518)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 29 16:56:55 PDT 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 c -- orc-rt/test/regression/languages/c/addressing/same-object/global-function-call.c orc-rt/test/regression/languages/c/addressing/same-object/global-function-pointer-in-data.c orc-rt/test/regression/languages/c/addressing/same-object/static-function-call.c orc-rt/test/regression/languages/c/addressing/same-object/static-function-tail-call.c --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/orc-rt/test/regression/languages/c/addressing/same-object/static-function-tail-call.c b/orc-rt/test/regression/languages/c/addressing/same-object/static-function-tail-call.c
index 2c8cdf493..47e21c39a 100644
--- a/orc-rt/test/regression/languages/c/addressing/same-object/static-function-tail-call.c
+++ b/orc-rt/test/regression/languages/c/addressing/same-object/static-function-tail-call.c
@@ -16,9 +16,7 @@ __attribute__((noinline)) static int addOne(int X) { return X + 1; }
// noinline, to prevent inlining into main, where the tail call would become a
// plain call.
-__attribute__((noinline)) static int tailCallAddOne(int X) {
- return addOne(X);
-}
+__attribute__((noinline)) static int tailCallAddOne(int X) { return addOne(X); }
// Non-const global argument, to prevent interprocedural constant propagation.
int Arg = 41;
``````````
</details>
https://github.com/llvm/llvm-project/pull/227518
More information about the llvm-commits
mailing list