[LLVMdev] ConstantInt to Value*?

James Molloy James.Molloy at arm.com
Tue Nov 2 03:50:55 PDT 2010


Hi,

As can be seen on http://llvm.org/doxygen/classllvm_1_1ConstantInt.html , ConstantInt inherits directly from Value, so:

Value *v = static_cast<Value*>(ci);

Cheers,

James

From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Soumya Prasad Ukil
Sent: 02 November 2010 10:45
To: llvmdev at cs.uiuc.edu
Subject: [LLVMdev] ConstantInt to Value*?

How to convert ConstantInt* to value*?

--
regards,
soumya prasad ukil

-- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20101102/3067f897/attachment.html>


More information about the llvm-dev mailing list