<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Assertion: llvm::DwarfUnit::addType(llvm::DIE&, const llvm::DIType*, llvm::dwarf::Attribute): Assertion `Ty && "Trying to add a type that doesn't exist?"
   href="https://bugs.llvm.org/show_bug.cgi?id=34186">34186</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion: llvm::DwarfUnit::addType(llvm::DIE&, const llvm::DIType*, llvm::dwarf::Attribute): Assertion `Ty && "Trying to add a type that doesn't exist?
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>DebugInfo
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>davide@freebsd.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>aprantl@apple.com, dblaikie@gmail.com, llvm-bugs@lists.llvm.org, rnk@google.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>$ ./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.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>