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

Nick Lewycky nicholas at mxc.ca
Thu Dec 10 09:21:49 PST 2009


Hans Wennborg wrote:
> I too have stumbled over this.
>
> Wouldn't it be a good idea to add a check for this to the function
> verifier pass?

No. This is a FAQ: http://llvm.org/docs/FAQ.html#callconvwrong

Nick

>
>
> 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.
>>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>




More information about the llvm-dev mailing list