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

            Bug ID: 37453
           Summary: assertion in emitting wasm dwarf debug info
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: WebAssembly
          Assignee: unassignedb...@nondot.org
          Reporter: c...@remobjects.com
                CC: llvm-bugs@lists.llvm.org

Created attachment 20303
  --> https://bugs.llvm.org/attachment.cgi?id=20303&action=edit
testcase zipped

Fails on 
assert(WasmIndices.count(&WS) > 0);
+               WS      {Type=WASM_SYMBOL_TYPE_SECTION (3) IsWeak=false
IsHidden=false ...}     const llvm::MCSymbolWasm &


`anonymous namespace'::WasmObjectWriter::writeObject(llvm::MCAssembler & Asm,
const llvm::MCAsmLayout & Layout) Line 1363       C++
llvm::MCAssembler::Finish() Line 796    C++
llvm::MCObjectStreamer::FinishImpl() Line 681   C++
llvm::MCWasmStreamer::FinishImpl() Line 197     C++
llvm::MCStreamer::Finish() Line 842     C++
llvm::AsmPrinter::doFinalization(llvm::Module & M) Line 1538    C++
llvm::FPPassManager::doFinalization(llvm::Module & M) Line 1559 C++
`anonymous namespace'::MPPassManager::runOnModule(llvm::Module & M) Line 1615  
C++
llvm::legacy::PassManagerImpl::run(llvm::Module & M) Line 1700  C++
llvm::legacy::PassManager::run(llvm::Module & M) Line 1732      C++
LLVMTargetMachineEmit(LLVMOpaqueTargetMachine * T, LLVMOpaqueModule * M,
llvm::raw_pwrite_stream & OS, LLVMCodeGenFileType codegen, char * *
ErrorMessage) Line 207     C++
LLVMTargetMachineEmitToMemoryBuffer(LLVMOpaqueTargetMachine * T,
LLVMOpaqueModule * M, LLVMCodeGenFileType codegen, char * * ErrorMessage,
LLVMOpaqueMemoryBuffer * * OutMemBuf) Line 229       C++

repro attached, steps:
unzip module13.zip, 
llc -O0 -filetype=obj Module13.ll

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to