> 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