[LLVMdev] dyn_cast<BitCastInst> fails?

Anton Korobeynikov anton at korobeynikov.info
Wed Oct 19 07:17:34 PDT 2011

> 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.
It is not a BitCastInst, it's a bitcast constant expression.

With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University

More information about the llvm-dev mailing list