<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:spatel+llvm@rotateright.com" title="Sanjay Patel <spatel+llvm@rotateright.com>"> <span class="fn">Sanjay Patel</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - [x86] Failure to remove all statements in function that doesn't return anything but should"
href="https://bugs.llvm.org/show_bug.cgi?id=47416">bug 47416</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>FIXED
</td>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">Fixed By Commit(s)</td>
<td>
</td>
<td>b22910daab95
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - [x86] Failure to remove all statements in function that doesn't return anything but should"
href="https://bugs.llvm.org/show_bug.cgi?id=47416#c8">Comment # 8</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - [x86] Failure to remove all statements in function that doesn't return anything but should"
href="https://bugs.llvm.org/show_bug.cgi?id=47416">bug 47416</a>
from <span class="vcard"><a class="email" href="mailto:spatel+llvm@rotateright.com" title="Sanjay Patel <spatel+llvm@rotateright.com>"> <span class="fn">Sanjay Patel</span></a>
</span></b>
<pre>Should be fixed with more instcombine zapping:
<a href="https://reviews.llvm.org/rGb22910daab95">https://reviews.llvm.org/rGb22910daab95</a>
Depending on target, we may do better than nothing on UB code as shown in the
description. For example, on x86, I see a 'ud2' instruction, so that should
crash and make the programmer aware of their buggy code even if they ignore the
compile-time warning:
47416.cpp:5:1: warning: non-void function does not return a value
[-Wreturn-type]</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>