[llvm-bugs] [Bug 39237] New: TypeFinder ignores function metadata

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Oct 9 15:25:30 PDT 2018


            Bug ID: 39237
           Summary: TypeFinder ignores function metadata
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Core LLVM classes
          Assignee: unassignedbugs at nondot.org
          Reporter: sean.m.bartell at gmail.com
                CC: llvm-bugs at lists.llvm.org

TypeFinder does not check for types used in the metadata of a function.

The bug can be demonstrated with the following module:

  %struct = type { }
  define void @func() !foo !0 { ret void }
  !0 = !{%struct zeroinitializer}

After piping through llvm-as|llvm-dis, the result is this:

  define void @func() !foo !0 { ret void }
  !0 = !{%struct zeroinitializer}

Because of the TypeFinder bug, llvm-dis doesn't print the struct definition,
and the output is invalid.

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/20181009/ddd76fcf/attachment.html>

More information about the llvm-bugs mailing list