[LLVMdev] Constructing a varargs CallInst
baldrick at free.fr
Wed Apr 28 04:57:14 PDT 2010
> I'm trying to use CallInst::Create to construct a call to a variadic
> function, and I'm running into the following assertion failure:
> void llvm::CallInst::init(llvm::Value*, llvm::Value* const*, unsigned
> int): Assertion `(i>= FTy->getNumParams() || FTy->getParamType(i) ==
> Params[i]->getType())&& "Calling a function with a bad signature!"' failed.
one of the parameters you are passing does not have the right type.
If you run in gdb, you can do:
to see what's going on.
More information about the llvm-dev