[all-commits] [llvm/llvm-project] b3b83a: [offload][lit] Fix compilation of two offload test...

Nick Sarnie via All-commits all-commits at lists.llvm.org
Tue Nov 25 07:16:37 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b3b83ac1e80e4a3f3e4241b2ae0ceabef369a5bf
      https://github.com/llvm/llvm-project/commit/b3b83ac1e80e4a3f3e4241b2ae0ceabef369a5bf
  Author: Nick Sarnie <nick.sarnie at intel.com>
  Date:   2025-11-25 (Tue, 25 Nov 2025)

  Changed paths:
    M offload/test/offloading/shared_lib_fp_mapping.c
    M offload/test/offloading/static_linking.c

  Log Message:
  -----------
  [offload][lit] Fix compilation of two offload tests (#169399)

These are C tests, not C++, so no function parameters means unspecified
number of parameters, not `void`.

These compile fine on the current tested offload targets because an
error is only
[thrown](https://github.com/llvm/llvm-project/blob/main/clang/lib/Sema/SemaDecl.cpp#L10695)
if the calling convention doesn't support variadic arguments, which they
happen to.

When compiling this test for other targets that do not support variadic
arguments, we get an error, which does not seem intentional.

Just add `void` to the parameter list.

---------

Signed-off-by: Nick Sarnie <nick.sarnie at intel.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list