[llvm-bugs] [Bug 42322] New: prefix data makes WASM compiler fail

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jun 19 04:59:09 PDT 2019


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

            Bug ID: 42322
           Summary: prefix data makes WASM compiler fail
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: WebAssembly
          Assignee: unassignedbugs at nondot.org
          Reporter: ck at remobjects.com
                CC: llvm-bugs at lists.llvm.org

When using prefix data, the llc compiler fails with:

LLVM ERROR: function sections must contain one function each
Stack dump:
0.      Program arguments: llc -filetype=obj fail.ll

Source file:
```
source_filename = "ArrayStruct-75f42ec9d14a2f9fae5bcc14aa7bad31"
target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
target triple = "wasm32"

@0 = private unnamed_addr constant { [16 x i8], void (i8*)* } { [16 x i8]
c"\16\E7\B4\8Be\080\BD/Eq\B3\A1\9A=C", void (i8*)* @TEST }

define void @TEST(i8* nocapture) prefix { [16 x i8], void (i8*)* }* @0 {
BasicBlock0:
  ret void
}
```

-- 
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/20190619/17ce03bd/attachment-0001.html>


More information about the llvm-bugs mailing list