[LLVMdev] Intrinsic prototype has incorrect number of arguments!
Eric Christopher
echristo at apple.com
Tue Sep 7 10:55:50 PDT 2010
On Sep 7, 2010, at 8:03 AM, F van der Meeren wrote:
> Hello,
>
> I have a question, what is wrong with the following code?
>
> declare void @llvm.memcpy.p0i64.p0i64.i8(i64*, i64*, i8, i32, i1) nounwind
>
> ...
>
> call void @llvm.memcpy.p0i64.p0i64.i8(i64* %19, i64* %21, i8 %17, i32 0, i1 false)
>
> ...
>
>
> According to the compiler this is the error, but I seem to miss where exactly my fault is.
>
> Intrinsic prototype has incorrect number of arguments!
> void (i64*, i64*, i8, i32, i1)* @llvm.memcpy.p0i64.p0i64.i8
>
Something is wonky in the error message since it's the right number of arguments... in general. I don't know that your prototype is correct. What's the corresponding code?
Can you send the module on and whatever you did to construct it?
-eric
More information about the llvm-dev
mailing list