<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:rnk@google.com" title="Reid Kleckner <rnk@google.com>"> <span class="fn">Reid Kleckner</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED DUPLICATE - Bug destroying data in utils/TableGen/CodeGenDAGPatterns.cpp"
   href="https://bugs.llvm.org/show_bug.cgi?id=48054">bug 48054</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;">Resolution</td>
           <td>---
           </td>
           <td>DUPLICATE
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED DUPLICATE - Bug destroying data in utils/TableGen/CodeGenDAGPatterns.cpp"
   href="https://bugs.llvm.org/show_bug.cgi?id=48054#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED DUPLICATE - Bug destroying data in utils/TableGen/CodeGenDAGPatterns.cpp"
   href="https://bugs.llvm.org/show_bug.cgi?id=48054">bug 48054</a>
              from <span class="vcard"><a class="email" href="mailto:rnk@google.com" title="Reid Kleckner <rnk@google.com>"> <span class="fn">Reid Kleckner</span></a>
</span></b>
        <pre>I think this is <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Crash when using LLVM10 built with MSVC for x86-32 Debug"
   href="show_bug.cgi?id=46176">https://bugs.llvm.org/show_bug.cgi?id=46176</a>

It looks like the build is 32-bit, judging by the width of the hex pointers in
the stack trace. Debug is the default CMake config, so that's probably in play
too.

It's an MSVC bug:
<a href="https://developercommunity.visualstudio.com/content/problem/1179643/msvc-copies-overaligned-non-trivially-copyable-par.html">https://developercommunity.visualstudio.com/content/problem/1179643/msvc-copies-overaligned-non-trivially-copyable-par.html</a>

MSVC passes SmallVector by value incorrectly in this config. ¯\_(ツ)_/¯

We landed a workaround, but I don't think it's in LLVM 10:
<a href="http://github.com/llvm/llvm-project/commit/4e3edef4b8b637c0c76897497eb7c66f00157210">http://github.com/llvm/llvm-project/commit/4e3edef4b8b637c0c76897497eb7c66f00157210</a>

*** This bug has been marked as a duplicate of <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Crash when using LLVM10 built with MSVC for x86-32 Debug"
   href="show_bug.cgi?id=46176">bug 46176</a> ***</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>