<div dir="ltr"><div><div>Well, I'm not sure if I can do #2 because the metadata needs to be resolved in order to print out the IR (is this true?) I'm not even sure if non-uniqueness is something that will show up on an IR dump.<br><br></div>I believe the problem has to do with self-referential metadata. The error occurs in a situation that may generate it, and I see that new methods have been added to DIBuilder to deal with this: replaceVTableHolder, replaceArrays, replaceTemporary.<br><br></div>I now need to determine if/how to use these. The description in the include file is not very clear.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 12, 2016 at 1:07 PM, mats petersson <span dir="ltr"><<a href="mailto:mats@planetcatfish.com" target="_blank">mats@planetcatfish.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I'm not sure of this particular error, but I have been working on implementing debug info in my code, and my principle for debugging the debug info is comprised of:<br></div><div>1. Minimise the code until the problem goes away, then undo the last change.<br></div><div>2. Generate LLVM-IR and inspect manually.<br></div><div>3. Dump the metadata and try to trace it back to the original construct (and then a lot of thinking to understand why it's not working)<br><br></div><div>I'm sorry if I'm telling you things you already know... <br><br>--<br></div><div>Mats<br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On 12 January 2016 at 14:06, David Jones via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><div><div><div>I'm upgrading my application to use LLVM 3.7.1 instead of 3.5.1.<br><br></div>On one of my regression tests I am getting an assertion:<br><br> /home2/djones/llvm-3.7.1.src/lib/IR/Metadata.cpp:490: void llvm::MDNode::resolve(): Assertion `isUniqued() && "Expected this to be uniqued"' failed.<br><br></div>This occurs when finalizing debug info prior to code generation:<br><br>#4  0x00007ffff4520455 in llvm::MDNode::resolve() () from /tools/llvm/3.7.1dbg/lib/<a href="http://libLLVM-3.7.1.so" target="_blank">libLLVM-3.7.1.so</a><br>#5  0x00007ffff4520f16 in llvm::MDNode::resolveCycles() () from /tools/llvm/3.7.1dbg/lib/<a href="http://libLLVM-3.7.1.so" target="_blank">libLLVM-3.7.1.so</a><br>#6  0x00007ffff4434654 in llvm::DIBuilder::finalize() () from /tools/llvm/3.7.1dbg/lib/<a href="http://libLLVM-3.7.1.so" target="_blank">libLLVM-3.7.1.so</a><br><br></div>I am using DIBuilder to generate all debug metadata. What application behavior would cause this assertion?<br></div></div>
<br></div></div>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>