<div><div dir="auto">Your APInt constructor arguments are reversed. Bit width comes first. The value.</div><br><div class="gmail_quote"><div>On Thu, Oct 19, 2017 at 5:27 PM Dipanjan Das via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><br></div>I tried the following:<div><br></div><div> - ConstantInt::get(Type::getInt64Ty(Ctx), APInt(0xFFFFFFFFFFFFFFFF, 64, false))</div><div> - ConstantInt::get(Type::getInt64Ty(Ctx), APInt(-1, 64))</div><div><br></div><div>I am receiving the following error: Assertion `NumBits <= MAX_INT_BITS && "bitwidth too large" failed<br clear="all"><div><br></div>-- <br><div class="m_-3572024460363104343gmail_signature"><div><span><div><div><p>Thanks & Regards,</p>
<div>Dipanjan</div></div></div></span></div></div>
</div></div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">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/mailman/listinfo/llvm-dev</a><br>
</blockquote></div></div><div dir="ltr">-- <br></div><div class="gmail_signature" data-smartmail="gmail_signature">~Craig</div>