[LLVMdev] Value* to Instruction*/LoadInst* casting

Jonas Wagner jonas.wagner at epfl.ch
Mon Jan 28 02:58:22 PST 2013


Hi,

    if(isa<LoadInst>(icmpInstrArray[i]->getOperand(0)))
>>         LoadInst *LD100 =
>> cast<LoadInst>(icmpInstrArray[i]->getOperand(0));
>>             Value *C100 = LD100->getPointerOperand(); //HERE COMPILATION
>> ERROR
>>
>
Could it be that you simply forgot the braces around the if() body?

Best,
Jonas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130128/aaeeee3f/attachment.html>


More information about the llvm-dev mailing list