[llvm-dev] InlineFunction method, call CloneFunctionInto instead of CloneAndPruneFunctionInto?

Michael Kuperstein via llvm-dev llvm-dev at lists.llvm.org
Thu Aug 4 22:33:26 PDT 2016


I'm not familiar with the context - but you're right, zeroext is
incompatible with void (in fact, it's incompatible with any non-integer
type).

On 4 August 2016 at 13:28, Kevin Choi via llvm-dev <llvm-dev at lists.llvm.org>
wrote:

> Just throwing this out there in hope that someone already knows the
> answer. I'm trying to narrow down something that fails post inlining.
> Anyone know why InlineFunction switching CloneAndPruneFunctionInto with
> CloneFunctionInto is invalid?
>
> The error I get is
> Wrong types for attribute: byval inalloca nest noalias nocapture nonnull
> readnone readonly signext sret zeroext dereferenceable(1)
> void (%"class.A::aaa"*, %struct.bbb*)* @foo_function
> LLVM ERROR: Broken function found, compilation aborted!
>
> Post-inlining method dump shows
> define internal fastcc zeroext void @foo_function(%"class.A::aaa"*,
> %struct.bbb*) #4
>
> Perhaps zeroext isn't compatible with void return type?
>
> Regards
> -Kevin
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160804/96584af2/attachment.html>


More information about the llvm-dev mailing list