linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* sparse-llvm variadic functions are not being marked as variadic
@ 2017-03-14 11:30 Dibyendu Majumdar
  2017-03-19 15:29 ` Luc Van Oostenryck
  0 siblings, 1 reply; 2+ messages in thread
From: Dibyendu Majumdar @ 2017-03-14 11:30 UTC (permalink / raw)
  To: Linux-Sparse

Hi,

It appears that when a function is compiled, its variadic flag is not
being set in LLVM so LLVM complains when at call sites variable
arguments are passed.

The fix requires a change in output_fn() in sparse-llvm.c:

function.type = LLVMFunctionType(return_type, arg_types, nr_args,
base_type->variadic);

Thanks and Regards
Dibyendu

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: sparse-llvm variadic functions are not being marked as variadic
  2017-03-14 11:30 sparse-llvm variadic functions are not being marked as variadic Dibyendu Majumdar
@ 2017-03-19 15:29 ` Luc Van Oostenryck
  0 siblings, 0 replies; 2+ messages in thread
From: Luc Van Oostenryck @ 2017-03-19 15:29 UTC (permalink / raw)
  To: Dibyendu Majumdar; +Cc: Linux-Sparse

On Tue, Mar 14, 2017 at 11:30:49AM +0000, Dibyendu Majumdar wrote:
> Hi,
> 
> It appears that when a function is compiled, its variadic flag is not
> being set in LLVM so LLVM complains when at call sites variable
> arguments are passed.
> 
> The fix requires a change in output_fn() in sparse-llvm.c:
> 
> function.type = LLVMFunctionType(return_type, arg_types, nr_args,
> base_type->variadic);

Applied in the llvm-fixes-v3 serie I submitted yesterday.

-- Luc

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-03-19 15:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-14 11:30 sparse-llvm variadic functions are not being marked as variadic Dibyendu Majumdar
2017-03-19 15:29 ` Luc Van Oostenryck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).