<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">DebugInstrumentation.cpp.  Line 246 does the following:<div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">if (DIGlobalVariable(*NMD->getOperand(i)).getGlobal() == GV) {</div></div><div class=""><br class=""></div><div class="">(Where <i class="">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><div class=""><br class=""></div><div class="">Peter</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jul 1, 2015, at 5:26 PM, John Criswell <<a href="mailto:jtcriswel@gmail.com" class="">jtcriswel@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">On 7/1/15 4:13 PM, Peter Finn wrote:<br class=""><blockquote type="cite" class="">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 class=""></blockquote><br class="">Which source file does this?  I don't recall off-hand where SAFECode does this and why.<br class=""><br class="">Regards,<br class=""><br class="">John Criswell<br class=""><br class=""><blockquote type="cite" class=""><br class="">Thanks,<br class="">Peter Finn<br class="">_______________________________________________<br class="">LLVM Developers mailing list<br class=""><a href="mailto:LLVMdev@cs.uiuc.edu" class="">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" class="">http://llvm.cs.uiuc.edu</a><br class=""><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" class="">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br class=""></blockquote><br class=""><br class="">-- <br class="">John Criswell<br class="">Assistant Professor<br class="">Department of Computer Science, University of Rochester<br class=""><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=" class="">http://www.cs.rochester.edu/u/criswell</a><br class=""><br class=""></div></blockquote></div><br class=""></div></body></html>