[llvm-bugs] [Bug 37409] New: Writing WASM obj file with debug information fails at writeObject

via llvm-bugs llvm-bugs at lists.llvm.org
Thu May 10 16:10:27 PDT 2018


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

            Bug ID: 37409
           Summary: Writing WASM obj file with debug information fails at
                    writeObject
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: WebAssembly
          Assignee: unassignedbugs at nondot.org
          Reporter: ydelendik at mozilla.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 20288
  --> https://bugs.llvm.org/attachment.cgi?id=20288&action=edit
minimal test case

llc fails at assert:

```
Assertion failed: (WasmIndices.count(&WS) > 0), function writeObject, file
/Users/yury/llvmwasm/llvm/lib/MC/WasmObjectWriter.cpp, line 1363
```

the test case can be run via `llc -- -filetype=obj fail-writeObject.ll`

the test case produced by clang from:

```
// clang-7.0 --target=wasm32-unknown-unknown-wasm -g -c fail-writeObject.c
static void *foo(void *p){}
int bar() {
     unknown(foo);
}
```

-- 
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/20180510/f4f9cbd1/attachment-0001.html>


More information about the llvm-bugs mailing list