[LLVMdev] Problem with code generated for call using stdcall convention

Hans Wennborg hans at hanshq.net
Thu Dec 10 00:18:22 PST 2009


I too have stumbled over this.

Wouldn't it be a good idea to add a check for this to the function 
verifier pass?


Hans

Anton Korobeynikov wrote:
> Hello
> 
>> I naively though it would pick up the call convention from the declaration
>> as there was no error like we have when the wrong number of parameters is
>> used.
> This is not an error, you're just invoking undefined behaviour.
> 



More information about the llvm-dev mailing list