[llvm-bugs] [Bug 41803] New: Assertion failed: T && T->hasMCAsmParser() in lld-link /lib

via llvm-bugs llvm-bugs at lists.llvm.org
Wed May 8 13:47:36 PDT 2019


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

            Bug ID: 41803
           Summary: Assertion failed: T && T->hasMCAsmParser() in lld-link
                    /lib
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: COFF
          Assignee: unassignedbugs at nondot.org
          Reporter: llvm at inglorion.net
                CC: llvm-bugs at lists.llvm.org

When using lld-link to build static libraries containing object files with
module assembly, the program would crash with "Assertion `T &&
T->hasMCAsmParser()' failed".

This is because, at that point, no targets have been registered, and const
Target *T = TargetRegistry::lookupTarget(TT.str(), Err); in ModuleSymbolTable
fails to find a Target for the supplied Triple.

-- 
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/20190508/7362275c/attachment.html>


More information about the llvm-bugs mailing list