<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/90662>90662</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
/llvm/lib/Object/MachOObjectFile.cpp:5197: possible cut'n'paste error ?
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
dcb314
</td>
</tr>
</table>
<pre>
Static analyser cppcheck says:
llvm/lib/Object/MachOObjectFile.cpp:5197:18: warning: Identical condition 'ImportsEnd>Symbols', second condition is always false [identicalConditionAfterEarlyExit]
Source code is
if (ImportsEnd > Symbols)
return malformedError("bad chained fixups: imports end " +
Twine(ImportsEndOffset) + " extends past end " +
Twine(DyldChainedFixups.datasize));
if (ImportsEnd > Symbols)
return malformedError("bad chained fixups: imports end " +
Twine(ImportsEndOffset) + " overlaps with symbols");
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysk79u4zgQh59m1AzOoEf_CxV2bAEpDilyL0CRI4u3tCiQVBzv0y-kxBsHSJEF1oUhgcOP32-okSGY08jcQL6H_JDIOQ7ON1p16TZLOqevzXOU0SiUo7TXwB7VNKmB1Q8M8hog3YE4gHj_t_blDNRa0wG1T93_rCJQ-69Uw9PbW2ssb9Q0QbrLt3UJ6W5bQbrDi_SjGU_L46PmMRolLSo3ahONGxGofDxPzsdwHDWkx-fruXM2AJVADxh4qbwrNwGlvchrwF7awAj53tyoD7eqXR_ZH6W31-OriZAf7oM8u9krRuU0L7T7JTQ9AlUfPgjpEX8b1e9ViOg5zn7Es7S982fWR--dB6qAqJMa1SDNyBp78zpPSyfRvDGRFygRAu0_aF___ruYkT_pPPV94AhUL9tXDL9GHnXASYb4BfuGOFytfnhzaleljZZRBvOTl1RUQ7r_1IdvNuIvduE7Yd0LeyungBcTBww3G7oPkOgm1XVay4SbbbnNclFXdZUMjdCVqIu-7nVW5KKSJEoqiizL6rSoSaeJaUhQJrJUkMiyvNrU3HWykLLsKGclOsgEn6Wxm2UUNs6fEhPCzE0tioISKzu2YR02opEvuC4udvkh8c2y559uPgXIhDUhhg9KNNFys8zWn48YTi4E01lGNUegcgQql2-BkZe7QEjbZPa2GWJcbwCoBWpPJg5zt1HufHfqIjh5937qah-A2jXdrwAAAP__JbdWig">