[llvm-bugs] [Bug 39352] New: Any code involving __builtin_wasm_throw cannot compile

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Oct 19 03:44:04 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=39352

            Bug ID: 39352
           Summary: Any code involving __builtin_wasm_throw cannot compile
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: chen.pang.he at jdh8.org
                CC: llvm-bugs at lists.llvm.org

Created attachment 21017
  --> https://bugs.llvm.org/attachment.cgi?id=21017&action=edit
Compiler invocation

__builtin_wasm_throw is supposed to transform to @llvm.wasm.throw,
but it always chokes compilation.

Minimal example:

int main(void)
{
    __builtin_wasm_throw(0, (void*)0);
}

Terminal output:

fatal error: error in backend: Cannot select: intrinsic %llvm.wasm.throw
clang-7: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 8.0.0 (https://github.com/llvm-mirror/clang.git
ab7073b16c4929d51075045579d4dada65a5d7f2)
(https://github.com/llvm-mirror/llvm.git
5eae65a2bb3c2d8c86a7c911d1bd433ccd14ddd3)
Target: wasm32-unknown-unknown-wasm
Thread model: single
InstalledDir: /home/jdh8/build/llvm/bin
clang-7: note: diagnostic msg: PLEASE submit a bug report to
https://bugs.llvm.org/ and include the crash backtrace, preprocessed source,
and associated run script.
clang-7: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-7: note: diagnostic msg: /tmp/throw-9d7cde.c
clang-7: note: diagnostic msg: /tmp/throw-9d7cde.sh
clang-7: note: diagnostic msg: 

********************

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20181019/82537e42/attachment.html>


More information about the llvm-bugs mailing list