[LLVMbugs] [Bug 23079] New: Allow subprograms to have no type; force subroutine types to have a type array

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Mar 30 20:24:27 PDT 2015


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

            Bug ID: 23079
           Summary: Allow subprograms to have no type; force subroutine
                    types to have a type array
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Core LLVM classes
          Assignee: unassignedbugs at nondot.org
          Reporter: dexonsmith at apple.com
                CC: aprantl at apple.com, dblaikie at gmail.com,
                    echristo at gmail.com, friss at apple.com,
                    llvmbugs at cs.uiuc.edu
    Classification: Unclassified

DIBuilder currently requires subprograms to have a valid type.  The current way
for frontends to skip providing a type is to null out the 'types:' array in
MDSubroutineType (I loosened a check in MDSubroutineType in r233468 [1] to
allow this while working on bug 22777).

[1]:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20150323/268539.html

I think it would be better to change MDSubprogram to allow a 'null' type, do
what's necessary in the backend to support this, and start requiring a non-null
'types:' field in MDSubroutineType.

I know dblaikie agrees; anyone else see a reason not to do 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/20150331/a0cdad72/attachment.html>


More information about the llvm-bugs mailing list