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

Duncan Sands baldrick at free.fr
Sun Feb 13 04:20:02 PST 2011


Hi Anton,

> But there are still some details I must be missing. I'm getting an assertion
> when I try the following assignment in my script:
>     global c = cos(1);
> Assertion failed: isa<X>(Val) && "cast<Ty>() argument of incompatible type!",

I think this is telling you that cos(1) is not a constant.

Ciao, Duncan.



More information about the llvm-dev mailing list