<div dir="ltr"><div>Hi all,</div><div><br></div><div>I would like to understand the strip-dead-debug-info transformation. </div><div>In my test case there is a static inline function with two local variables.</div><div>It appears that the function is already inlined before strip-dead-debug-info starts its work. As a result the DICompileUnit is cleaned and its subprograms list has no reference to the DISubprogram for the inlined function, but as there is reference from the DILocalVariables to the DISubprogram it remains (IMHO).</div><div>This caused to a segmentation fault while running llc on the optimized IR file at function "constructAbstractSubprogramScopeDIE" in file DwarfDebug.cpp because the scope of the DISubprogram is null (I assume it should be the DICompileUnit).</div><div><br></div><div>So I would like to know what would be the correct solution for this issue: Update optimization to not remove reference from the subprograms list, or to skip finding scope in llc.</div><div><br></div><div>Any help is highly appreciated.</div><div><br></div><div>Thanks,</div><div>Arsen</div><div><br></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><br></div><font color="#444444">If it's not fun you're not doing it right -- Fran Tarkenton</font><br></div></div>
</div>