<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:t.p.northover@gmail.com" title="Tim Northover <t.p.northover@gmail.com>"> <span class="fn">Tim Northover</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - LLVM optimizer eliminates zero check if return statement is missing"
   href="https://bugs.llvm.org/show_bug.cgi?id=42897">bug 42897</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;">Resolution</td>
           <td>---
           </td>
           <td>INVALID
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>t.p.northover@gmail.com
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - LLVM optimizer eliminates zero check if return statement is missing"
   href="https://bugs.llvm.org/show_bug.cgi?id=42897#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - LLVM optimizer eliminates zero check if return statement is missing"
   href="https://bugs.llvm.org/show_bug.cgi?id=42897">bug 42897</a>
              from <span class="vcard"><a class="email" href="mailto:t.p.northover@gmail.com" title="Tim Northover <t.p.northover@gmail.com>"> <span class="fn">Tim Northover</span></a>
</span></b>
        <pre>Undefined behaviour like this frequently results in unexpected outcomes.

If you really want less aggressive optimizations in this case then there's a
-fno-strict-return option that will help, though it doesn't cover all cases for
some pretty good reasons (see <a href="https://reviews.llvm.org/D27163">https://reviews.llvm.org/D27163</a>).


But fixing warnings is probably the best plan.</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>