[LLVMdev] casting Constant * to value *?
jtcriswel at gmail.com
Mon Mar 23 10:42:13 PDT 2015
On 3/18/15 1:35 PM, Alexander Poddey wrote:
> John, you are right.
> I 'browsed' the doxygen's inheritance diagram.
> Shouldn't I then be able to cast Constant * to Value*?
You should be able to, although, as others have pointed out, it is
> Plugging the retrieved Constant* (from ConstantExpr::getGetElementPtr)
> into Instruction->setOperand compiles, but gives me an assertion failure at
What assertion did you get? It's hard to diagnose the problem without
knowing what assertion you are seeing.
Department of Computer Science, University of Rochester
More information about the llvm-dev