<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 - wasm32: Invalid wasm generated when debuginfo related"
   href="https://bugs.llvm.org/show_bug.cgi?id=39158">39158</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>wasm32: Invalid wasm generated when debuginfo related
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </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>Backend: WebAssembly
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>alex@crichton.co
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dan433584@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=20952" name="attach_20952" title="Failing IR">attachment 20952</a> <a href="attachment.cgi?id=20952&action=edit" title="Failing IR">[details]</a></span>
Failing IR

I was recently trying to upgrade LLVM in rust-lang/rust but hit some bugs when
testing a community crate on the wasm backend. Specifically if the compiled IR
is attached and validated it fails to validate:


    $ llc foo.ll-O2 -filetype=obj -o foo.o
    $ wasm2wat foo.o
    foo.o:0000086: error: type mismatch in i32.eqz, expected [i32] but got []
    foo.o:00000a0: error: type mismatch in function, expected [] but got [i32]</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>