[LLVMdev] dyn_cast<BitCastInst> fails?

ret val retval386 at gmail.com
Wed Oct 19 06:35:32 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. For someone my dyn_cast always fails, does anyone see

        BitCastInst *bitcast = dyn_cast<BitCastInst>(arg);
        assert(bitcast != NULL);

Thank you

More information about the llvm-dev mailing list