Hi:<br><br>In a function pass, I tried to create a function which takes a int32 and return void.<br>When I call this function with CallInst::Create and using opt, it always has the error report:<br><br>
opt: Value.cpp:189: void llvm::Value::setName(const llvm::Twine&): Assertion `getType() != Type::getVoidTy(getContext()) && "Cannot assign a name to void values!"' failed.<br><br>if I change the return type to int32, then it works.<br>

<br>so what is the special trick to use a function with void return type. <br><br>Any help would be appreciated.<br><br>-- <br>--Gang.<br>