<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 - ItaniumDemangle - struct Db alignment warnings"
   href="https://bugs.llvm.org/show_bug.cgi?id=37944">37944</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>ItaniumDemangle - struct Db alignment warnings
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </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>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>llvm-dev@redking.me.uk
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>erik.pilkington@gmail.com, i@maskray.me, llvm-bugs@lists.llvm.org, maskray@google.com, sepavloff@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>MSVC is warning of alignment issues in the code:

ItaniumPartialDemangler::ItaniumPartialDemangler()
    : RootNode(nullptr), Context(new Db{nullptr, nullptr}) {}

C:\ps4-buildslave2\llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast\llvm.src\lib\Demangle\ItaniumDemangle.cpp(5164):
warning C4316: '`anonymous-namespace'::Db': object allocated on the heap may
not be aligned 16

<a href="http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast/builds/17987/steps/build/logs/warnings%20%284%29">http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast/builds/17987/steps/build/logs/warnings%20%284%29</a>

I think this is due to Db containing BumpPointerAllocator which contains an
aligned member:

class BumpPointerAllocator {
  ...
  alignas(16) char InitialBuffer[AllocSize];
  ...
};</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>