Hi!<div><br></div><div>DwarfDebug class can generate the same (inlined) DIVariable twice:</div><div>1) when trying to find abstract debug variable for a concrete inlined instance</div><div>2) when explicitly collecting info for variables that were optimized out. </div>
<div><br></div><div>Duplicated DIEs for variables confuses e.g. gdb (it shows two identical function arguments).</div><div>I've attached the proposed little patch and a testcase. Please take a look.</div><div><div><div>
<br></div><div>(more context - <a href="http://llvm.org/bugs/show_bug.cgi?id=13202">http://llvm.org/bugs/show_bug.cgi?id=13202</a>)</div><div><br></div>-- <br><div>Alexey Samsonov, MSK</div><br>
</div></div>