<div dir="ltr"><div><br></div><div>As a concrete question, I understand 'Value' class is the parent of many concrete sub-classes. Let's say I retrieve a Value* value = store_inst->getValueOperand(). Unless I know what the sub-type is, how can I further use this object? I tried something like this:</div><div><br></div><div>=================================================</div><div><br></div><div>         Value* value = store_inst->getValueOperand()</div><div>         errs() << value->getValueID; // Which ID corresponds to which sub-class?</div><div>         errs() << value->getValueName(); // Prints numeric memory addresses</div><div>         errs() << *value->getValueName(); // Doesn't compile       </div><div>         </div><div>=================================================<br clear="all"><div><br></div><div>I have mentioned the issues in each of the cases above. I am not sure if the approach is correct or not. Please help me out.</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><span><div><div dir="ltr"><p>Thanks & Regards,</p>
<div>Dipanjan</div></div></div></span></div></div>
</div></div>