<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:nlewycky@google.com" title="Nick Lewycky <nlewycky@google.com>"> <span class="fn">Nick Lewycky</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - missed null dereference warning"
   href="https://llvm.org/bugs/show_bug.cgi?id=11876">bug 11876</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>nlewycky@google.com
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>FIXED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - missed null dereference warning"
   href="https://llvm.org/bugs/show_bug.cgi?id=11876#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - missed null dereference warning"
   href="https://llvm.org/bugs/show_bug.cgi?id=11876">bug 11876</a>
              from <span class="vcard"><a class="email" href="mailto:nlewycky@google.com" title="Nick Lewycky <nlewycky@google.com>"> <span class="fn">Nick Lewycky</span></a>
</span></b>
        <pre>All better!

pr11876.cc:3:8: warning: reference cannot be bound to dereferenced null pointer
      in well-defined C++ code; comparison may be assumed to always evaluate to
      false [-Wtautological-undefined-compare]
  if (&obj == 0) return 0;
       ^~~    ~
pr11876.cc:7:7: warning: binding dereferenced null pointer to reference has
      undefined behavior [-Wnull-dereference]
  foo(*(Cls*)0);
      ^~~~~~~~
2 warnings generated.</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>