<div dir="ltr">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).</div><div class="gmail_extra"><br><div class="gmail_quote">On 4 August 2016 at 13:28, Kevin Choi via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">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?<br><div><br></div><div>The error I get is <br>Wrong types for attribute: byval inalloca nest noalias nocapture nonnull readnone readonly signext sret zeroext dereferenceable(1)<br>void (%"class.A::aaa"*, %struct.bbb*)* @foo_function<br>LLVM ERROR: Broken function found, compilation aborted!<br><br></div><div>Post-inlining method dump shows<br>define internal fastcc zeroext void @foo_function(%"class.A::aaa"*<wbr>, %struct.bbb*) #4<br><br></div><div>Perhaps zeroext isn't compatible with void return type?<br></div><div><br>Regards</div><span class="HOEnZb"><font color="#888888"><div>-Kevin</div></font></span></div>
<br>______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div>