[LLVMbugs] [Bug 20091] Invalid assembly code generated by clang-cl from the inline assembly

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jun 20 17:18:18 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=20091

Reid Kleckner <rnk at google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #2 from Reid Kleckner <rnk at google.com> ---
This is an as-yet unsupported aspect of MS inline assembly documented here:
http://msdn.microsoft.com/en-us/library/5sds75we.aspx

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 bug 17201 ***

-- 
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/20140621/27af2dfe/attachment.html>


More information about the llvm-bugs mailing list