<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:rjmccall@apple.com" title="John McCall <rjmccall@apple.com>"> <span class="fn">John McCall</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - Compiler not properly honoring alignment when calling trivial default copy constructor"
   href="https://llvm.org/bugs/show_bug.cgi?id=24982">bug 24982</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>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 - Compiler not properly honoring alignment when calling trivial default copy constructor"
   href="https://llvm.org/bugs/show_bug.cgi?id=24982#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - Compiler not properly honoring alignment when calling trivial default copy constructor"
   href="https://llvm.org/bugs/show_bug.cgi?id=24982">bug 24982</a>
              from <span class="vcard"><a class="email" href="mailto:rjmccall@apple.com" title="John McCall <rjmccall@apple.com>"> <span class="fn">John McCall</span></a>
</span></b>
        <pre>This is correct behavior; the alignment parameter to llvm.memcpy applies to
both pointers, which means the previous code was buggy because the global c4 is
only 4-byte-aligned.  That is, the alignment argument has to be the minimum of
the alignment of the two pointers, not the maximum.

There is an effort to make llvm.memcpy capable of separately expressing the
alignment of the pointers.  When that happens, you should see that the source
alignment is 4 and the destination alignment is 16.</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>