<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 - Incorrect assumption results in NullDereference warning"
   href="https://bugs.llvm.org/show_bug.cgi?id=46104">46104</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Incorrect assumption results in NullDereference warning
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>10.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </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>Static Analyzer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>dcoughlin@apple.com
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>Jeremy.overesch@millerwelds.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dcoughlin@apple.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=23544" name="attach_23544" title="Example Code">attachment 23544</a> <a href="attachment.cgi?id=23544&action=edit" title="Example Code">[details]</a></span>
Example Code

When running clang-tidy on the attached file, I get a
clang-analyzer-core.NullDereference warning for lines 42 and 50.  The route it
takes to get this issue does not appear to be valid.

On line 59, it calls `outObj.getType()` (a const function) and assumes it is
`OutsideObject::type16`.  However, on line 69 it makes the same call and
assumes that it is `OutsideObject::type32`, which is not possible in the flow
of the code.</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>