[llvm-bugs] [Bug 33299] functions with empty body are wrongly optimized
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Jun 4 07:24:45 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=33299
Dimitry Andric <dimitry at andric.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|NEW |RESOLVED
CC| |dimitry at andric.com
--- Comment #1 from Dimitry Andric <dimitry at andric.com> ---
Yes, you should return something from f1(), if you declare it to return an
integer. If you do not return anything, and hit the closing brace '}', the
behavior is undefined.
--
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/20170604/c839928d/attachment-0001.html>
More information about the llvm-bugs
mailing list