<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-unknown-emscripten backend: PHINode should have one entry for each predecessor of its parent basic block!"
   href="https://bugs.llvm.org/show_bug.cgi?id=43060">43060</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>wasm32-unknown-emscripten backend: PHINode should have one entry for each predecessor of its parent basic block!
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </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>pmpp.pub@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=22399" name="attach_22399" title="main-ceb4bc.c main-ceb4bc.sh + diff of macro line generating crash">attachment 22399</a> <a href="attachment.cgi?id=22399&action=edit" title="main-ceb4bc.c main-ceb4bc.sh + diff of macro line generating crash">[details]</a></span>
main-ceb4bc.c main-ceb4bc.sh + diff of macro line generating crash

using clang-10 from CI of emscripten tip of tree with clang version 10.0.0
(/b/s/w/ir/cache/git/chromium.googlesource.com-external-github.com-llvm-llvm--project
edfaee08115376467d1c95573de991aebfdaeb42)

adding one more jump table causes:


PHINode should have one entry for each predecessor of its parent basic block!
  %setjmpTableSize998 = phi i32 [ %setjmpTableSize999, %indirectgoto ], [
%setjmpTableSize999, %indirectgoto ], [ %setjmpTableSize996, %while.end91 ]
in function main_loop_or_step
fatal error: error in backend: Broken function found, compilation aborted!
clang-10: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 10.0.0
(/b/s/w/ir/cache/git/chromium.googlesource.com-external-github.com-llvm-llvm--project
edfaee08115376467d1c95573de991aebfdaeb42)
Target: wasm32-unknown-emscripten
Thread model: posix
InstalledDir: /opt/sdk/emsdk-upstream/upstream/bin
clang-10: note: diagnostic msg: PLEASE submit a bug report to
<a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> and include the crash backtrace, preprocessed source,
and associated run script.
clang-10: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-10: note: diagnostic msg: /tmp/main-39aafd.c
clang-10: note: diagnostic msg: /tmp/main-39aafd.sh
clang-10: note: diagnostic msg: 

********************</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>