<div dir="rtl"><div dir="ltr">The API was changed. Try cast_or_null<GlobalVarible>(DIGV->getVariable()) where DIGV is DIGlobalVariable.</div><div dir="ltr"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div dir="ltr">2015-07-02 0:30 GMT+03:00 Peter Finn <span dir="ltr"><<a href="mailto:peterdfinn@icloud.com" target="_blank">peterdfinn@icloud.com</a>></span>:</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">DebugInstrumentation.cpp.  Line 246 does the following:<div><br></div><div><div style="margin:0px;font-size:11px;font-family:Menlo">if (DIGlobalVariable(*NMD->getOperand(i)).getGlobal() == GV) {</div></div><div><br></div><div>(Where <i>i</i> is an unsigned loop variable and NMD is a NamedMDNode.)  Apparently, the compiler rejected the cast from an MDNode (the result of getOperand(i)) to a DIGlobalVariable.  Also, it appears that getGlobal() doesn’t exist anymore in the DIGlobalVariable doxygen.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Peter</div></font></span><span class=""><div><br><div><blockquote type="cite"><div>On Jul 1, 2015, at 5:26 PM, John Criswell <<a href="mailto:jtcriswel@gmail.com" target="_blank">jtcriswel@gmail.com</a>> wrote:</div><br><div>On 7/1/15 4:13 PM, Peter Finn wrote:<br><blockquote type="cite">I’m trying to debug SAFECode source code files, and I need to find a way to obtain a GlobalVariable from its appropriate MDNode.  How can I do this?  I’ve been looking over the doxygen and I can’t seem to find a way to do this.<br></blockquote><br>Which source file does this?  I don't recall off-hand where SAFECode does this and why.<br><br>Regards,<br><br>John Criswell<br><br><blockquote type="cite"><br>Thanks,<br>Peter Finn<br>_______________________________________________<br>LLVM Developers mailing list<br><a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br></blockquote><br><br>-- <br>John Criswell<br>Assistant Professor<br>Department of Computer Science, University of Rochester<br><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.cs.rochester.edu_u_criswell&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=hqzz4SgnE6Gjjmw2t5FKhhoJbH7PzSg01U2ZBjD19jA&s=-Tx70_ffc2Thj6_wJxl3awls9I1WXpC38zaMfu-0oRg&e=" target="_blank">http://www.cs.rochester.edu/u/criswell</a><br><br></div></blockquote></div><br></div></span></div><br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" rel="noreferrer" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" rel="noreferrer" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br></div>