[LLVMdev] dyn_cast<BitCastInst> fails?

Duncan Sands baldrick at free.fr
Wed Oct 19 06:58:16 PDT 2011


Hi ret val,

> I am trying to dyn_cast a Value* to a BitCastInst. The dump of what I
> want casted is "i8* bitcast (i32 (i32)* @f1 to i8*)", so it is a
> BitCastInst. For someone my dyn_cast always fails, does anyone see
> why?

it's probably a bitcast constant expression rather than an instruction.

Ciao, Duncan.



More information about the llvm-dev mailing list