Sounds like you are using the C++ API.
You can store the value like: Value *val = Builder.CreateCall(...);
Then, for example, you can do: Builder.CreateAdd(val, val);
Or whatever else you want to program!
On Jul 4, 2012 11:13 AM, "Adelle Hartley" <adelle at
akemi.com.au> wrote:
> Hi all.
>
> I am using LLVM to develop a procedural language. Can anybody point me to
> an example that uses CreateCall for a non-tail call? I am having trouble
> doing anything with the return value from the call besides returning it
> immediately.
>
> i.e. Passing the CallInst created by CreateCall to CreateRet is working
> fine, but I am having trouble storing the returned value in a local
> variable or passing it to another call.
>
> Adelle.
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20120704/702b710d/attachment.html>