<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 - The use of if (Condition) {...} else if (Condition) {...} pattern should be avoided.(llvm-project/lldb/source/Plugins/Language/ObjC/NSArray.cpp:line 826)"
   href="https://bugs.llvm.org/show_bug.cgi?id=47089">47089</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>The use of if (Condition) {...} else if (Condition) {...} pattern should be avoided.(llvm-project/lldb/source/Plugins/Language/ObjC/NSArray.cpp:line 826)
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lldb
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </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>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>lldb-dev@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>info@ustchcs.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>jdevlieghere@apple.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The use of if (Condition) {...} else if (Condition) {...} pattern should be
avoided.
Code on line 827 cannot be executed.

commit e3546c78cabfbf670391a57766872f0a8e28a423

llvm-project/lldb/source/Plugins/Language/ObjC/NSArray.cpp:line 826

   814    if (class_name == g_NSArrayI) {
   815      if (runtime->GetFoundationVersion() >= 1436)
   816        return (new
Foundation1436::NSArrayISyntheticFrontEnd(valobj_sp));
   817      if (runtime->GetFoundationVersion() >= 1430)
   818        return (new
Foundation1430::NSArrayISyntheticFrontEnd(valobj_sp));
   819      else
   820        return (new
Foundation1300::NSArrayISyntheticFrontEnd(valobj_sp));
   821    } else if (class_name == g_NSArrayI_Transfer) {
   822        return (new
Foundation1436::NSArrayI_TransferSyntheticFrontEnd(valobj_sp));
   823    } else if (class_name == g_NSArray0) {
   824    } else if (class_name == g_NSFrozenArrayM) {
   825      return (new
Foundation1436::NSFrozenArrayMSyntheticFrontEnd(valobj_sp));
   826    } else if (class_name == g_NSArray0) {
   827      return (new NSArray0SyntheticFrontEnd(valobj_sp));

Reported by: Ustchcs Toolsets Bugfinder
(bugfinder-2.2: The use of if (Condition) {...} else if (Condition) {...}
pattern should be avoided.)</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>