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

            Bug ID: 34186
           Summary: Assertion: llvm::DwarfUnit::addType(llvm::DIE&, const
                    llvm::DIType*, llvm::dwarf::Attribute): Assertion `Ty
                    && "Trying to add a type that doesn't exist?
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: DebugInfo
          Assignee: unassignedb...@nondot.org
          Reporter: dav...@freebsd.org
                CC: apra...@apple.com, dblai...@gmail.com,
                    llvm-bugs@lists.llvm.org, r...@google.com

$ ./llc red.ll
llc: ../lib/CodeGen/AsmPrinter/DwarfUnit.cpp:764: void
llvm::DwarfUnit::addType(llvm::DIE&, const llvm::DIType*,
llvm::dwarf::Attribute): Assertion `Ty && "Trying to add a type that doesn't
exist?"' failed.

$ cat blah.ll

!llvm.dbg.cu = !{!2}
!llvm.module.flags = !{!63, !64}
!1 = distinct !DIGlobalVariable(name: "pat", scope: !2, file: !3, line: 27,
isLocal: true, isDefinition: true)
!2 = distinct !DICompileUnit(language: DW_LANG_C99, file: !3, producer: "",
emissionKind: FullDebug, globals: !5)
!3 = !DIFile(filename: "patatino.c", directory: "/")
!5 = !{!6}
!6 = !DIGlobalVariableExpression(var: !1)
!63 = !{i32 2, !"Dwarf Version", i32 4}
!64 = !{i32 2, !"Debug Info Version", i32 3}


This should probably be rejected in the verifier. I'll work on a patch for
this.

-- 
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