[llvm-bugs] [Bug 34186] New: Assertion: llvm::DwarfUnit::addType(llvm::DIE&, const llvm::DIType*, llvm::dwarf::Attribute): Assertion `Ty && "Trying to add a type that doesn't exist?
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Aug 14 11:13:25 PDT 2017
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: unassignedbugs at nondot.org
Reporter: davide at freebsd.org
CC: aprantl at apple.com, dblaikie at gmail.com,
llvm-bugs at lists.llvm.org, rnk at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170814/bd221a3c/attachment.html>
More information about the llvm-bugs
mailing list