<div dir="ltr">Hi Guys ,<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::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><div>~Umesh</div><div><br></div><div><br></div></div>