<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">No it shouldn't be, the <a href="http://llvm.org/docs/LangRef.html#int_memcpy">LLVM assembly language reference manual</a> declares it at follows:<div><span class="Apple-style-span" style="font-family: Times; "><pre>declare void @llvm.memcpy.p0i8.p0i8.i32(i8* <dest>, i8* <src>,
i32 <len>, i32 <align>, i1 <isvolatile>)</pre></span><div><br></div></div><div><br><div><div>On 07 Sep 2010, at 20:38, Bill Wendling wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Sep 7, 2010, at 8:03 AM, F van der Meeren wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hello,</div><div><br></div><div>I have a question, what is wrong with the following code?</div><div><font class="Apple-style-span" face="Menlo" size="4"><span class="Apple-style-span" style="font-size: 14px;"><b><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="font-weight: normal; font-size: medium;"><br></span></font></b></span></font></div><div><font class="Apple-style-span" face="Menlo" size="4"><span class="Apple-style-span" style="font-size: 14px;"><b><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="font-weight: normal; font-size: medium;"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 32px; text-indent: -32px; font: normal normal normal 14px/normal Menlo; "><b>declare void @llvm.memcpy.p0i64.p0i64.i8(i64*, i64*, i8, i32, i1) nounwind</b></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 32px; text-indent: -32px; font: normal normal normal 14px/normal Menlo; "><b><br></b></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 32px; text-indent: -32px; font: normal normal normal 14px/normal Menlo; "><b>...</b></div></span></font></b></span></font></div><div><font class="Apple-style-span" face="Menlo" size="4"><span class="Apple-style-span" style="font-size: 14px; "><b><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="font-weight: normal; font-size: medium;"><br></span></font></b></span></font></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 48px; text-indent: -48px; font: normal normal normal 14px/normal Menlo; "><b>call void @llvm.memcpy.p0i64.p0i64.i8(i64* %19, i64* %21, i8 %17, i32 0, i1 false)</b></div></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 48px; text-indent: -48px; font: normal normal normal 14px/normal Menlo; "><b><br></b></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 48px; text-indent: -48px; font: normal normal normal 14px/normal Menlo; "><b>...</b></div><div><br></div><div><br></div><div>According to the compiler this is the error, but I seem to miss where exactly my fault is.</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 32px; text-indent: -32px; font: normal normal normal 14px/normal Menlo; "><b>Intrinsic prototype has incorrect number of arguments!</b></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 32px; text-indent: -32px; font: normal normal normal 14px/normal Menlo; "><b>void (i64*, i64*, i8, i32, i1)* @llvm.memcpy.p0i64.p0i64.i8</b></div></div><div><br></div><div>Any help would be appreciated.</div><div><br></div></div></blockquote><div>The third parameter should be a pointer.</div><div><br></div><div>-bw</div></div><br></div></blockquote></div><br></div></body></html>