[LLVMdev] Argument's types mismatch when creating CallInst.
arrowdodger
6yearold at gmail.com
Sat Nov 12 03:02:09 PST 2011
On Fri, Nov 11, 2011 at 11:00 PM, Eli Friedman <eli.friedman at gmail.com>wrote:
> A CallInst in one module can't reference a Function in another module.
> Build a declaration of foo in the module where you're building the
> call, and call that.
>
> -Eli
>
Hmm, before emitting any code i've added this:
Function::Create(fooFunction->getFunctionType(),fooFunction->getLinkage(),"foo",myModule);
Now i see @foo declaration when dumping myModule, but the error is still
same.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111112/60fb08ec/attachment.html>
More information about the llvm-dev
mailing list