[llvm-bugs] [Bug 41420] missed opt: nounwind on extern "C"

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Apr 7 16:51:55 PDT 2019


Richard Smith <richard-llvm at metafoo.co.uk> changed:

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

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
An extern "C" function can be implemented in C++, and even if implemented in C
it can still unwind. For example, pthread cancellation might be implemented by
unwinding, or it might throw an Objective-C exception. Marking such a function
as nounwind would be incorrect.

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/20190407/31ac1fd9/attachment.html>

More information about the llvm-bugs mailing list