[cfe-dev] Reaching the end of a value-returning function in C++

Richard Smith richard at metafoo.co.uk
Thu Oct 4 16:56:48 PDT 2012


As of r165273, clang produces 'unreachable' if we flow off the end of a
value-returning function (without returning a value) in C++. This is
undefined behavior, but we used to just return undef, instead of trying to
exploit it. Please let me know if this causes problems for you, and we can
weaken it to an acceptable level.

Thanks!
Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20121004/91353610/attachment.html>


More information about the cfe-dev mailing list