<div dir="ltr"><div class="gmail_quote"><div dir="ltr">Hi All, <div><br></div><div>We have the function that accepts StringRef and construct the DeclarationName instance .</div><div><br></div><div>Currenlty we are achieving the same as ,the code snap</div><div><br></div><div>void appendExtern(StringRef Sr)</div><div>{</div><div> char *ExternChar = const_cast<char *> (Sr.data());<br></div><div><div> *Ptr =reinterpret_cast<void *>(ExternChar);</div><div> </div><div> this->ExternName = DeclarationName::<wbr>getFromOpaquePtr(Ptr);</div></div><div><br></div><div>}</div><div><br></div><div>There is, any better way of achieving this ,because the above code is crashing intermittently ? </div><div><br></div><div>Thank you and any help here appreciated.</div><span class="HOEnZb"><font color="#888888"><div>~Umesh</div><div><br></div><div><br></div></font></span></div>
</div><br></div>