[LLVMdev] Incompatible types at call site
Arushi Aggarwal
arushi987 at gmail.com
Thu Apr 7 07:52:46 PDT 2011
That does solve the problem of the generated code.
Thanks a lot.
Arushi
On Thu, Apr 7, 2011 at 3:34 AM, Duncan Sands <baldrick at free.fr> wrote:
> Hi Arushi,
>
>
> I got this from C code compiled by llvm-gcc.
>>
>> There is a consistent prototype for the function
>>
>> TypHandle Cyclotomic ( hdRes, n, m )
>> TypHandle hdRes;
>> long n, m;
>>
>
> I just remembered that Kernighan and Ritchie style declarations like this
> don't
> have the semantics you might expect. In particular this is not equivalent
> to
> saying
> TypHandle Cyclotomic ( TypHandle hdRes, long n, long m )
> If you change the declaration to the previous line, does the nasty
> bitcasting
> go away?
>
> Ciao, Duncan.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110407/49d50e41/attachment.html>
More information about the llvm-dev
mailing list