<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 - insn->consumedDisplacement is Overwritten Before Being Used"
href="https://bugs.llvm.org/show_bug.cgi?id=44470">44470</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>insn->consumedDisplacement is Overwritten Before Being Used
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Backend: X86
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>cameron.smith@pnnl.gov
</td>
</tr>
<tr>
<th>CC</th>
<td>craig.topper@gmail.com, llvm-bugs@lists.llvm.org, llvm-dev@redking.me.uk, spatel+llvm@rotateright.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=22992" name="attach_22992" title="X86::readDisplacement()">attachment 22992</a> <a href="attachment.cgi?id=22992&action=edit" title="X86::readDisplacement()">[details]</a></span>
X86::readDisplacement()
In the file llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp in the
function readDisplacement (line 1235), insn->consumedDisplacement is set to
true on line 1245. In the proceeding switch statement, the same variable may be
set to false (if insn->eaDisplacement == EA_DSP_NONE), but the line immediately
after the switch (line 1269) always sets it back to true. I think this can be
fixed by removing line 1269. I've attached a copy of the function in question.</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>