<div dir="ltr"><div><div>Hi,<br><br></div>I would like to use std::shared_ptr in my pass. However I'm facing a problem wrt RTTI. If I have a code like:<br><br></div><div><span style="font-family:monospace,monospace">std::shared_ptr<BaseClass> x(new DerivedClass());<br>...<br></span></div><div><span style="font-family:monospace,monospace">std::shared_ptr<DerivedClass> p = std::dynamic_pointer_cast<DerivedClass>(x);</span><br><br></div><div>It does not compile since the default RTTI infrastructure is not used by LLVM. Also, it's not clear to me if the 'classof' approach works in this case (I did try it with no success).<br><br></div><div>Is it possible to have a dynamic_cast using std smart pointers in LLVM?<br></div><div><br></div><div>Thanks.<br></div></div>