Displaying 1 result from an estimated 1 matches for "constantarry".
Did you mean:
constantarray
2004 Dec 09
1
[LLVMdev] Question about insert call func with pionter parameter
...e* call void %stat_func( [21 x sbyte] c "this a example\00\00\00\00"
...........
Broken module found, comilation aborted!
........
The information comes from verifier.cpp which mean the type of parameter of the function differ with the type of parameter the code passed.
I knew that the constantarry differ from sbyte pointer ( sbyte*), but I tried to change the code to
>Function *exFunc = M->getOrInsertFunction("stat_func", Type::VoidTy, Cstr->getType(),0);
or
>Function *exFunc = M->getOrInsertFunction("stat_func", Type::VoidTy, Type::ArrayTyID,0);
and onc...