<html>
<head>
<base href="https://llvm.org/bugs/" />
</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 --- - Allow subprograms to have no type; force subroutine types to have a type array"
href="https://llvm.org/bugs/show_bug.cgi?id=23079">23079</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Allow subprograms to have no type; force subroutine types to have a type array
</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>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Core LLVM classes
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>dexonsmith@apple.com
</td>
</tr>
<tr>
<th>CC</th>
<td>aprantl@apple.com, dblaikie@gmail.com, echristo@gmail.com, friss@apple.com, llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>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 <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Make the debug info hierarchy strict"
href="show_bug.cgi?id=22777">bug 22777</a>).
[1]:
<a href="http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20150323/268539.html">http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20150323/268539.html</a>
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?</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>