<div dir="ltr">All,<br><br>Is it possible to create a function without yet knowing the return type of the function.<div><br></div><div>E.g. something like</div><div>ArrayRef<Type*> args = ...</div><div><div>FunctionType *FT = FunctionType::get(args, false);</div>

<div>Function *F = Function::create("",FT,Function::ExternalLinkage);</div><div>BasicBlock *BB = BasicBlock::Create(getGlobalContext(), "entry", F);</div></div><div>...</div><div>some code that creates body of function</div>

<div>...</div><div>F->setReturnType(type);</div><div>FT->setReturnType(type);<br><br>Thanks,<br>Billy Moses</div></div>