[LLVMdev] conversion from 'const llvm::Value*' to 'llvm::Constant*'

Duncan Sands baldrick at free.fr
Sat Feb 12 04:47:01 PST 2011


Hi Anton,

> I'm getting the following error
>
>     error: invalid conversion from `const llvm::Value*' to `llvm::Constant*'
>
> How may I make this conversion? Any help would be much appreciated!

cast<Constant>(whatever)

Ciao, Duncan.



More information about the llvm-dev mailing list