https://bugs.llvm.org/show_bug.cgi?id=42897
Tim Northover <t.p.northo...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
CC| |t.p.northo...@gmail.com
--- Comment #3 from Tim Northover <t.p.northo...@gmail.com> ---
Undefined behaviour like this frequently results in unexpected outcomes.
If you really want less aggressive optimizations in this case then there's a
-fno-strict-return option that will help, though it doesn't cover all cases for
some pretty good reasons (see https://reviews.llvm.org/D27163).
But fixing warnings is probably the best plan.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs