diff --git a/lib/Interpreter/IncrementalExecutor.cpp b/lib/Interpreter/IncrementalExecutor.cpp index 98b4fc3e..d46cdccf 100644 --- a/lib/Interpreter/IncrementalExecutor.cpp +++ b/lib/Interpreter/IncrementalExecutor.cpp @@ -175,6 +175,9 @@ IncrementalExecutor::executeFunction(llvm::StringRef funcname, "could not find function named " << funcname << '\n'; return kExeFunctionNotCompiled; } + assert (f->getFunctionType()->getNumParams() == 1 + && (*f->getFunctionType()->param_begin())->isPtrOrPtrVectorTy() && + "Wrong signature"); typedef void (*PromptWrapper_t)(void*); union { PromptWrapper_t wrapperFunction;