<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 - Then-branch and else-branch of the same if-statement should not be the same.(llvm-project/clang/lib/Analysis/ThreadSafety.cpp:2042)"
href="https://bugs.llvm.org/show_bug.cgi?id=46963">46963</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Then-branch and else-branch of the same if-statement should not be the same.(llvm-project/clang/lib/Analysis/ThreadSafety.cpp:2042)
</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>info@ustchcs.com
</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>Then-branch and else-branch of the same if-statement should not be the same.
Same then- and else-statements are found on line 2040 and 2042. Same problem is
found on line 2045 and 2047.
commit e3546c78cabfbf670391a57766872f0a8e28a423
2037 if (ME && MD) {
2038 if (ME->isArrow()) {
2039 if (MD->isConst())
2040 checkPtAccess(CE->getImplicitObjectArgument(), AK_Read);
2041 else // FIXME -- should be AK_Written
2042 checkPtAccess(CE->getImplicitObjectArgument(), AK_Read);
2043 } else {
2044 if (MD->isConst())
2045 checkAccess(CE->getImplicitObjectArgument(), AK_Read);
2046 else // FIXME -- should be AK_Written
2047 checkAccess(CE->getImplicitObjectArgument(), AK_Read);
2048 }
2049 }
Reported by: Ustchcs Toolsets Bugfinder
(bugfinder-2.1: Then-branch and else-branch of the same if-statement should not
be the same.)</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>