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: unassignedb...@nondot.org
          Reporter: l...@inglorion.net
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to