<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:rnk@google.com" title="Reid Kleckner <rnk@google.com>"> <span class="fn">Reid Kleckner</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED DUPLICATE - Invalid assembly code generated by clang-cl from the inline assembly"
href="http://llvm.org/bugs/show_bug.cgi?id=20091">bug 20091</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;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>DUPLICATE
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED DUPLICATE - Invalid assembly code generated by clang-cl from the inline assembly"
href="http://llvm.org/bugs/show_bug.cgi?id=20091#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED DUPLICATE - Invalid assembly code generated by clang-cl from the inline assembly"
href="http://llvm.org/bugs/show_bug.cgi?id=20091">bug 20091</a>
from <span class="vcard"><a class="email" href="mailto:rnk@google.com" title="Reid Kleckner <rnk@google.com>"> <span class="fn">Reid Kleckner</span></a>
</span></b>
<pre>This is an as-yet unsupported aspect of MS inline assembly documented here:
<a href="http://msdn.microsoft.com/en-us/library/5sds75we.aspx">http://msdn.microsoft.com/en-us/library/5sds75we.aspx</a>
MSVC will generate a return sequence for you after inline assembly, even if you
failed to return a value. Clang on the other hand will warn with -Wreturn-type
and transform it to unreachable, because failing to return a value from a
function with a non-void return type is UB. When we add this behavior quirk to
Clang we can make -Wreturn-type quieter.
*** This bug has been marked as a duplicate of <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - MS inline assembly should assume asm block sets the return value."
href="show_bug.cgi?id=17201">bug 17201</a> ***</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>