<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:compnerd@compnerd.org" title="Saleem Abdulrasool <compnerd@compnerd.org>"> <span class="fn">Saleem Abdulrasool</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - -Wunused-const-variable doesn't warn for ObjC types if ARC is enabled"
   href="https://llvm.org/bugs/show_bug.cgi?id=31781">bug 31781</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>dgregor@apple.com, rjmccall@apple.com
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>INVALID
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - -Wunused-const-variable doesn't warn for ObjC types if ARC is enabled"
   href="https://llvm.org/bugs/show_bug.cgi?id=31781#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - -Wunused-const-variable doesn't warn for ObjC types if ARC is enabled"
   href="https://llvm.org/bugs/show_bug.cgi?id=31781">bug 31781</a>
              from <span class="vcard"><a class="email" href="mailto:compnerd@compnerd.org" title="Saleem Abdulrasool <compnerd@compnerd.org>"> <span class="fn">Saleem Abdulrasool</span></a>
</span></b>
        <pre>Doug and John can correct me if I am wrong, but I believe that the current
behavior is correct.

The lifetime is being extended here.  The type can have a dealloc method that
performs some operation with unknown side-effects.  By eliminating the type, we
have changed the semantics of the program.  Since this can occur by other means
at load time, we cannot actually determine if the type is actually unused.  So,
we would give a false warning here.</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>