[LLVMdev] weird issue with mem2reg, should have guessed

Patrick Meredith
Wed, 23 Jun 2004 16:26:04 -0000

I am handling null, I'm using the if( something* s
dyn_cast<something>(something_else){ } construct.  It's the fact that
I was
using getOperand(1) on a call instruction that should always have an
operand.... (the 0th operand is the function, the 1st should be the
paramter).  For some reason this error only pops up after mem2reg.  But I
need to change this so that I am not adding whole basic blocks to my program
value set anyway.