<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - [DebugInfo@O2] Add stricter assertions and checks for debug intrinsic linenos"
href="https://bugs.llvm.org/show_bug.cgi?id=41827">41827</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[DebugInfo@O2] Add stricter assertions and checks for debug intrinsic linenos
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Keywords</th>
<td>wrong-debug
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Scalar Optimizations
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>jeremy.morse.llvm@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>As brought up in this review [0], with debugging intrinsics being given zero
linenos (as damage limitation in case they leak), we should enforce this in
more locations. Bjorn suggests:
* Also fix calls to DIBuilder::insertDbgValueIntrinsic in LoopUtils, Debugify
and LLVMDIBuilder* the same way.
* Assert that line/col is zero in DIBuilder::insertDbgValueIntrinsic.
* Add checks in Verifier and MachineVerifier that line/col is zero for
dbg.value/DBG_VALUE.
This should also expose any circumstances where debug intrinsics have their
DebugLocs replaced with "real" locations (potentially changing their scope),
which is the complementary error case to what [0] fixes.
[0] <a href="https://reviews.llvm.org/D59272?id=198638">https://reviews.llvm.org/D59272?id=198638</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>